{"id":"CVE-2026-59869","published":"2026-07-08T15:15:54Z","modified":"2026-07-09T15:14:29Z","title":"js-yaml: YAML merge-key chains can force quadratic CPU consumption","vendor":"nodeca","product":"js-yaml","tier":"tail","description":{"text":"js-yaml is a JavaScript YAML parser and dumper. From 3.0.0 before 3.15.0 and from 4.0.0 before 4.3.0, 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 versions 3.15.0 and 4.3.0.","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.00585,"percentile":0.48894,"provenance":"source"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://github.com/nodeca/js-yaml/security/advisories/GHSA-52cp-r559-cp3m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nodeca/js-yaml/commit/24f13e79ee1343a7e30bd6f6c9d9cdbf0ac9b2b7","tags":["x_refsource_MISC"]},{"url":"https://github.com/nodeca/js-yaml/commit/59423c6f8cdc78742ac00e25a4dd39ef16b702e4","tags":["x_refsource_MISC"]},{"url":"https://github.com/nodeca/js-yaml/releases/tag/3.15.0","tags":["x_refsource_MISC"]},{"url":"https://github.com/nodeca/js-yaml/releases/tag/4.3.0","tags":["x_refsource_MISC"]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":9.78},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"nodeca","affectedVersions":[{"vendor":"nodeca","product":"js-yaml","versions":[">= 3.0.0, < 3.15.0",">= 4.0.0, < 4.3.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-09T15:14:16.302841Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"js-yaml","vulnerableRanges":[">=3.0.0, <3.15.0",">=4.0.0, <4.3.0"],"patched":["3.15.0","4.3.0"],"from":["GHSA-52cp-r559-cp3m"],"provenance":"source"}],"summary":{"text":"The js-yaml JavaScript YAML parser and dumper, from 3.0.0 before 3.15.0 and from 4.0.0 before 4.3.0, can spend quadratic CPU time when parsing a document whose size grows only linearly, specifically a chain of mappings where each mapping uses merge keys to merge the previous one. An attacker who can supply a crafted YAML document to an application using a vulnerable version can exhaust CPU resources and degrade availability, with no authentication, no user interaction, and no special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:49Z"},"euvd":{"id":"EUVD-2026-42301","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-nodeca-js-yaml-cve-2025-64718","parents":[{"from":"CVE-2025-64718","to":"CVE-2026-59869","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:js-yaml","fromFixed":"3.14.2","toFixed":"3.15.0","daysApart":237},{"kind":"same-code","provenance":"machine","files":["lib/js-yaml/loader.js","lib/loader.js"],"commits":["https://github.com/nodeca/js-yaml/commit/383665ff4248ec2192d1274e934462bb30426879","https://github.com/nodeca/js-yaml/commit/5278870a17454fe8621dbd8c445c412529525266","https://github.com/nodeca/js-yaml/commit/24f13e79ee1343a7e30bd6f6c9d9cdbf0ac9b2b7","https://github.com/nodeca/js-yaml/commit/59423c6f8cdc78742ac00e25a4dd39ef16b702e4"],"basis":"shared function","functions":["mergeMappings","storeMappingPair"]}]}],"children":[{"from":"CVE-2026-59869","to":"CVE-2026-84375","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:js-yaml","fromFixed":"4.3.0","toFixed":"4.3.2","daysApart":55},{"kind":"version-step","provenance":"source","package":"npm:js-yaml","fromFixed":"3.15.0","toFixed":"3.15.2","daysApart":55},{"kind":"same-code","provenance":"machine","files":["lib/js-yaml/loader.js"],"commits":["https://github.com/nodeca/js-yaml/commit/24f13e79ee1343a7e30bd6f6c9d9cdbf0ac9b2b7","https://github.com/nodeca/js-yaml/commit/59423c6f8cdc78742ac00e25a4dd39ef16b702e4","https://github.com/nodeca/js-yaml/commit/3485bc06ff8a0251505f44a00414d90df2466639","https://github.com/nodeca/js-yaml/commit/6a8e05f9a485188ed730ac81e81ae221352ef480"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2013-4660","published":"2013-06-28","fixed":"2.0.5","kev":false},{"cve":"CVE-2025-64718","published":"2025-11-13","fixed":"4.1.1","kev":false},{"cve":"CVE-2026-53550","published":"2026-06-22","fixed":"4.2.0","kev":false,"link":{"from":"CVE-2026-53550","to":"CVE-2026-59869","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:js-yaml","fromFixed":"4.2.0","toFixed":"4.3.0","daysApart":16}]}},{"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},{"cve":"CVE-2026-59870","published":"2026-07-08","fixed":"5.2.1","kev":false}],"package":"npm:js-yaml"}}