Skip to main content
← All vulnerabilities
CVE-2026-59870GHSA-724G-MXRG-4QVM

js-yaml quadratic-complexity denial of service via YAML11_SCHEMA !!omap parsing

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

Summary

js-yaml is a JavaScript YAML parser and dumper. Prior to 3.15.1, 4.3.1, and 5.2.1, YAML11_SCHEMA support for the !!omap tag in src/tag/sequence/omap.ts uses omapTag.addItem() to perform a linear duplicate-key scan on every insertion, causing O(n^2) CPU consumption when yaml.load() parses a crafted ordered-map document. In v3 and v4, !!omap is active and exploitable by default. v5 doesn't use !!omap by default, and the chances of activating it are very low.This issue is fixed in 3.15.1, 4.3.1, and 5.2.1.

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.1; From 3.0.0 · fixed in 3.15.1; From 4.0.0 · fixed in 4.3.1

  • js-yamlnpm

    From 5.0.0 · fixed in 5.2.1

References 7

GitHub · nodeca/js-yaml