Skip to main content
← All vulnerabilities
CVE-2026-53550GHSA-H67P-54HQ-RP68

js-yaml: Quadratic-complexity DoS in merge key handling via repeated aliases

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

Summary

js-yaml is a JavaScript YAML parser and dumper. Prior to 4.2.0 and 3.15.0, a crafted YAML document can trigger algorithmic CPU exhaustion in js-yaml merge-key processing (<<) by repeating the same alias many times in a merge sequence. This causes quadratic parse-time behavior relative to input size and can block a Node.js worker/event loop for seconds with a relatively small payload (tens of KB), resulting in denial of service. The issue is in merge handling inside lib/loader.js. This vulnerability is fixed in 4.2.0 and 3.15.0.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • nodeca js-yaml

    From 4.0.0 · fixed in 4.2.0; fixed in 3.15.0

  • js-yamlnpm

    From 4.0.0 · fixed in 4.2.0

  • js-yamlnpm

    fixed in 3.15.0

References 1

GitHub · nodeca/js-yaml