# CVE-2026-59869: js-yaml: YAML merge-key chains can force quadratic CPU consumption

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 37% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-08T15:15:54.675Z
- Modified: 2026-10-25T20:10:00.147Z
- Also known as: GHSA-52cp-r559-cp3m
- Weaknesses: CWE-400, CWE-407
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- nodeca js-yaml: >= 3.0.0, < 3.15.0; >= 4.0.0, < 4.3.0; from 3.0.0 before 3.15.0; from 4.0.0 before 4.3.0
- js-yaml (npm): from 3.0.0 before 3.15.0; from 4.0.0 before 4.3.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/nodeca/js-yaml/security/advisories/GHSA-52cp-r559-cp3m> (exploit, vendor-advisory, web)
- <https://github.com/nodeca/js-yaml/commit/24f13e79ee1343a7e30bd6f6c9d9cdbf0ac9b2b7> (patch, web)
- <https://github.com/nodeca/js-yaml/commit/59423c6f8cdc78742ac00e25a4dd39ef16b702e4> (patch, web)
- <https://github.com/nodeca/js-yaml/releases/tag/3.15.0> (release-notes, web)
- <https://github.com/nodeca/js-yaml/releases/tag/4.3.0> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59869> (advisory)
- <https://github.com/nodeca/js-yaml> (package)

## Sources

- CVE List: [CVE-2026-59869](https://www.cve.org/CVERecord?id=CVE-2026-59869), CVE Terms of Use, modified 2026-07-09
- GitHub Advisory Database: [GHSA-52cp-r559-cp3m](https://github.com/advisories/GHSA-52cp-r559-cp3m), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-59869](https://nvd.nist.gov/vuln/detail/CVE-2026-59869), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-59869 · Whole record: https://cve.day/CVE-2026-59869.json · Rebuilt by cve.day 2026-11-25T22:59:27.390Z
