CVE-2026-59870: high-severity vulnerability in nodeca js-yaml
js-yaml quadratic-complexity denial of service via YAML11_SCHEMA !!omap parsing
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
21Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 7.5epss 0.7%
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected products
nodeca · js-yamlRelated CVEs — nodeca js-yaml
In the same product, most dangerous first.
CVE-2026-59868MEDIUMjs-yaml: YAML merge-key chains can force quadratic CPU consumptionEPSS 0.6%CVE-2026-59869HIGHjs-yaml: YAML merge-key chains can force quadratic CPU consumptionEPSS 0.6%CVE-2026-84375HIGHjs-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sourcesEPSS 0.5%CVE-2026-73643HIGHjs-yaml: Exponential parsing time in the flow collections leads to denial of serviceEPSS 0.5%CVE-2025-64718MEDIUMjs-yaml has prototype pollution in merge (<<)EPSS 0.4%CVE-2026-53550MEDIUMjs-yaml: Quadratic-complexity DoS in merge key handling via repeated aliasesEPSS 0.4%
References
https://github.com/nodeca/js-yaml/commit/22a8071ef032117bc6249c330b240ac3aa2d3dedhttps://github.com/nodeca/js-yaml/commit/39f3211a2f01b3c6982710cf21434ab7060acefehttps://github.com/nodeca/js-yaml/commit/c3cc4b0bb9ddb9af2dd9b61e0d56f5ce7983cd4ahttps://github.com/nodeca/js-yaml/releases/tag/3.15.1https://github.com/nodeca/js-yaml/releases/tag/4.3.1https://github.com/nodeca/js-yaml/releases/tag/5.2.1https://github.com/nodeca/js-yaml/security/advisories/GHSA-724g-mxrg-4qvm