Skip to main content
← All vulnerabilities
CVE-2026-59868GHSA-G796-FGMG-93MV

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.2.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 5.0.0 before 5.2.0, when merge keys are enabled, 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 version 5.2.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 5.0.0 · fixed in 5.2.0

  • js-yamlnpm

    From 5.0.0 · fixed in 5.2.0

References 3

GitHub · nodeca/js-yaml