{"id":"CVE-2026-59870","published":"2026-07-08T15:13:20Z","modified":"2026-10-06T15:07:05Z","title":"js-yaml quadratic-complexity denial of service via YAML11_SCHEMA !!omap parsing","vendor":"nodeca","product":"js-yaml","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0074,"percentile":0.55496,"provenance":"source"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://github.com/nodeca/js-yaml/security/advisories/GHSA-724g-mxrg-4qvm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nodeca/js-yaml/commit/22a8071ef032117bc6249c330b240ac3aa2d3ded","tags":["x_refsource_MISC"]},{"url":"https://github.com/nodeca/js-yaml/commit/39f3211a2f01b3c6982710cf21434ab7060acefe","tags":["x_refsource_MISC"]},{"url":"https://github.com/nodeca/js-yaml/commit/c3cc4b0bb9ddb9af2dd9b61e0d56f5ce7983cd4a","tags":["x_refsource_MISC"]},{"url":"https://github.com/nodeca/js-yaml/releases/tag/3.15.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/nodeca/js-yaml/releases/tag/4.3.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/nodeca/js-yaml/releases/tag/5.2.1","tags":["x_refsource_MISC"]}],"priority":{"score":16.3,"factors":[{"name":"EPSS percentile","points":11.1},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"nodeca","affectedVersions":[{"vendor":"nodeca","product":"js-yaml","versions":[">= 5.0.0, < 5.2.1",">= 3.0.0, < 3.15.1",">= 4.0.0, < 4.3.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-08T15:50:31.265965Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"js-yaml","vulnerableRanges":[">=5.0.0, <5.2.1"],"patched":["5.2.1"],"from":["GHSA-724g-mxrg-4qvm"],"provenance":"source"}],"summary":{"text":"The js-yaml JavaScript YAML parser has a flaw in the YAML11_SCHEMA handling of the !!omap tag in src/tag/sequence/omap.ts, where each insertion performs a linear duplicate-key scan.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:14:09Z"},"euvd":{"id":"EUVD-2026-42300","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-59869","published":"2026-07-08","fixed":"4.3.0","kev":false},{"cve":"CVE-2026-84375","published":"2026-09-01","fixed":"4.3.2","kev":false},{"cve":"CVE-2026-59868","published":"2026-07-08","fixed":"5.2.0","kev":false,"link":{"from":"CVE-2026-59868","to":"CVE-2026-59870","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:js-yaml","fromFixed":"5.2.0","toFixed":"5.2.1","daysApart":0}]}},{"cve":"CVE-2026-59870","published":"2026-07-08","fixed":"5.2.1","kev":false},{"cve":"CVE-2026-73643","published":"2026-08-13","fixed":"5.2.2","kev":false,"link":{"from":"CVE-2026-59870","to":"CVE-2026-73643","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:js-yaml","fromFixed":"5.2.1","toFixed":"5.2.2","daysApart":36}]}}],"package":"npm:js-yaml"}}