{"id":"CVE-2026-59868","published":"2026-07-08T15:18:19Z","modified":"2026-07-09T13:42:54Z","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 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00644,"percentile":0.51816,"provenance":"source"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://github.com/nodeca/js-yaml/security/advisories/GHSA-g796-fgmg-93mv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nodeca/js-yaml/commit/3105455b81dee69e0fd36e09ac0b2ccfdb54adc1","tags":["x_refsource_MISC"]},{"url":"https://github.com/nodeca/js-yaml/releases/tag/5.2.0","tags":["x_refsource_MISC"]}],"priority":{"score":14.1,"factors":[{"name":"EPSS percentile","points":10.36},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"nodeca","affectedVersions":[{"vendor":"nodeca","product":"js-yaml","versions":[">= 5.0.0, < 5.2.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-09T13:41:56.104624Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"js-yaml","vulnerableRanges":[">=5.0.0, <5.2.0"],"patched":["5.2.0"],"from":["GHSA-g796-fgmg-93mv"],"provenance":"source"}],"summary":{"text":"The js-yaml JavaScript YAML parser, in versions from 5.0.0 before 5.2.0, can spend quadratic CPU time parsing a document when merge keys are enabled and a chain of mappings each merges the previous one.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:41:48Z"},"euvd":{"id":"EUVD-2026-42302","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-nodeca-js-yaml-cve-2025-64718","children":[{"from":"CVE-2026-59868","to":"CVE-2026-84375","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/parser/constructor.ts"],"commits":["https://github.com/nodeca/js-yaml/commit/3105455b81dee69e0fd36e09ac0b2ccfdb54adc1","https://github.com/nodeca/js-yaml/commit/3485bc06ff8a0251505f44a00414d90df2466639","https://github.com/nodeca/js-yaml/commit/6a8e05f9a485188ed730ac81e81ae221352ef480"],"basis":"shared function","functions":["isMappingTag"]}]}],"packageHistory":[{"cve":"CVE-2026-53550","published":"2026-06-22","fixed":"4.2.0","kev":false},{"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,"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-73643","published":"2026-08-13","fixed":"5.2.2","kev":false}],"package":"npm:js-yaml"}}