{"id":"CVE-2026-84375","published":"2026-09-01T21:43:13Z","modified":"2026-09-28T21:32:39Z","title":"js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources","vendor":"nodeca","product":"js-yaml","tier":"tail","description":{"text":"js-yaml is a JavaScript YAML parser and dumper. From 3.0.0 until 3.15.2, 4.3.2, and 5.4.1, maxTotalMergeKeys in lib/js-yaml/loader.js and lib/loader.js does not count empty mapping sources while processing the merge key <<. An attacker can alias a large sequence of empty mappings into many merge targets, causing O(N * K) processing while totalMergeKeys remains unchanged and the configured resource limit is never reached. A relatively small YAML document can therefore cause prolonged CPU consumption in applications that parse untrusted YAML, and merge processing is enabled by default on these release lines. In v3 & v4, merge is enabled by default so the severity score is higher. This issue is fixed in versions 3.15.2, 4.3.2, and 5.4.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.00716,"percentile":0.49515,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://github.com/nodeca/js-yaml/security/advisories/GHSA-2883-xcg3-v3hh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nodeca/js-yaml/pull/797","tags":["x_refsource_MISC"]},{"url":"https://github.com/nodeca/js-yaml/commit/3485bc06ff8a0251505f44a00414d90df2466639","tags":["x_refsource_MISC"]},{"url":"https://github.com/nodeca/js-yaml/commit/6a8e05f9a485188ed730ac81e81ae221352ef480","tags":["x_refsource_MISC"]},{"url":"https://github.com/nodeca/js-yaml/commit/d90b6612a5a84385bdcb556c44578eac76dc0f6b","tags":["x_refsource_MISC"]},{"url":"https://github.com/nodeca/js-yaml/releases/tag/3.15.2","tags":["x_refsource_MISC"]},{"url":"https://github.com/nodeca/js-yaml/releases/tag/4.3.2","tags":["x_refsource_MISC"]},{"url":"https://github.com/nodeca/js-yaml/releases/tag/5.4.1","tags":["x_refsource_MISC"]}],"priority":{"score":15.2,"factors":[{"name":"EPSS percentile","points":9.9},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"nodeca","affectedVersions":[{"vendor":"nodeca","product":"js-yaml","versions":[">= 3.0.0, < 3.15.2",">= 4.0.0, < 4.3.2",">= 5.0.0, < 5.4.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-09-02T13:43:50.850378Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"js-yaml","vulnerableRanges":[">=4.0.0, <4.3.2",">=3.0.0, <3.15.2"],"patched":["4.3.2","3.15.2"],"from":["GHSA-2883-xcg3-v3hh"],"provenance":"source"}],"summary":{"text":"js-yaml, a JavaScript YAML parser and dumper, has a flaw in which the maxTotalMergeKeys limit in loader.js does not count empty mapping sources when processing the merge key <<, so the resource cap is never reached. An attacker who can supply a YAML document to an application that parses untrusted input needs no privileges or user interaction over the network, and can use aliased sequences of empty mappings to force prolonged CPU consumption, with merge processing enabled by default in the affected release lines.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:34:45Z"},"euvd":{"id":"EUVD-2026-69712","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-nodeca-js-yaml-cve-2025-64718","parents":[{"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"}]},{"from":"CVE-2025-64718","to":"CVE-2026-84375","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/js-yaml/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/3485bc06ff8a0251505f44a00414d90df2466639","https://github.com/nodeca/js-yaml/commit/6a8e05f9a485188ed730ac81e81ae221352ef480"],"basis":"shared function","functions":["storeMappingPair"]}]},{"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-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},{"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},{"cve":"CVE-2026-73643","published":"2026-08-13","fixed":"5.2.2","kev":false}],"package":"npm:js-yaml"}}