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

- Severity: Medium 5.3 (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:L`
- 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.35%, higher than 31% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-08T15:18:19.422Z
- Modified: 2026-10-25T20:10:00.147Z
- Also known as: GHSA-g796-fgmg-93mv
- Weaknesses: CWE-400, CWE-407, CWE-770
- 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 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.

(As written by CVE List.)

## Affected

- nodeca js-yaml: >= 5.0.0, < 5.2.0; from 5.0.0 before 5.2.0
- js-yaml (npm): from 5.0.0 before 5.2.0

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: 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-g796-fgmg-93mv> (exploit, vendor-advisory, web)
- <https://github.com/nodeca/js-yaml/commit/3105455b81dee69e0fd36e09ac0b2ccfdb54adc1> (patch, web)
- <https://github.com/nodeca/js-yaml/releases/tag/5.2.0> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59868> (advisory)
- <https://github.com/nodeca/js-yaml> (package)

## Sources

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

---

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