Skip to main content
← All vulnerabilities
CVE-2026-59869GHSA-52CP-R559-CP3M

js-yaml: YAML merge-key chains can force quadratic CPU consumption

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.15.0, 4.3.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

js-yaml is a JavaScript YAML parser and dumper. From 3.0.0 before 3.15.0 and from 4.0.0 before 4.3.0, js-yaml can spend quadratic CPU time parsing a document whose size grows only linearly when a chain of mappings uses merge keys where each mapping merges the previous one. This issue is fixed in versions 3.15.0 and 4.3.0.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • nodeca js-yaml

    From 3.0.0 · fixed in 3.15.0; From 4.0.0 · fixed in 4.3.0

  • js-yamlnpm

    From 3.0.0 · fixed in 3.15.0

  • js-yamlnpm

    From 4.0.0 · fixed in 4.3.0

References 5

GitHub · nodeca/js-yaml