
CVE catalog
CVE-2026-59868
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 chai
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.64% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | node-js-yaml | sid | 4.3.2+~4.0.9-1 | not affected |
| Debian | node-js-yaml | forky | 4.3.2+~4.0.9-1 | not affected |
| Debian | node-js-yaml | trixie | 4.1.0+dfsg+~4.0.5-7 | not affected |
| Debian | node-js-yaml | bookworm | 4.1.0+dfsg+~4.0.5-7 | not affected |
| Npm | js-yaml | Not reported | 5.2.0 | fixed |
| Cpe | js-yaml | Not reported | 5.2.0 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | node-js-yaml | source | sid | Not affected | unimportant | Not reported | Not reported |
| Debian | node-js-yaml | source | forky | Not affected | unimportant | Not reported | Not reported |
| Debian | node-js-yaml | source | trixie | Not affected | unimportant | Not reported | Not reported |
| Debian | node-js-yaml | source | bookworm | Not affected | unimportant | Not reported | Not reported |
| Npm | js-yaml | npm | Not reported | 5.2.0 | Not reported | Not reported | Not reported |
| Cpe | js-yaml | cpe | Not reported | 5.2.0 | Not reported | NVD-CVE-2026-59868 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [node-js-yaml]Not affected
Details (2)
4.1.0+dfsg+~4.0.5-7· all · bookwormNot affected
nvd · node-js-yaml · debian · bookworm
4.1.0+dfsg+~4.0.5-7· all · bookwormNot affected
nvd · node-js-yaml · debian · bookworm
Observed:
References
- [https://github.com/advisories/GHSA-g796-fgmg-93mv]
- [https://github.com/nodeca/js-yaml/commit/3105455b81dee69e0fd36e09ac0b2ccfdb54adc1]
- [https://github.com/nodeca/js-yaml/releases/tag/5.2.0]
- [https://github.com/nodeca/js-yaml/security/advisories/GHSA-g796-fgmg-93mv]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-59868]
- [https://security-tracker.debian.org/tracker/CVE-2026-59868]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-59868.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-3221.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [Red Hat security advisories and VEX]