CVE-2026-59868 js-yaml: YAML merge-key chains can force quadratic CPU consumption
HighCVSS 7.5
EPSS 0.64%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
15 packages: 10 fixed, 5 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/discovery/discovery-ui-rhel9:1788206196(Red Hat discovery 2 el9) | All versions | No fix listed | No fix yet |
| ubuntu/node-js-yaml(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-js-yaml(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-js-yaml(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-js-yaml(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| nodeca js-yaml | = >= 5.0.0, < 5.2.0; >= 5.0.0, < 5.2.0 | 5.2.0 | Fixed |
| npm js-yaml(npm) | >= 5.0.0, < 5.2.0; >= 5.0.0, <= 5.1.0 | 5.2.0 | Fixed |
| redhat/dotnet8-0-main(Red Hat hummingbird 1) | < 8.0.128-1.hum1 | 8.0.128-1.hum1 | Fixed |
| redhat/nodejs20-main(Red Hat hummingbird 1) | < 10.8.2-1.20.20.2.1.hum1; < 20.20.2-1.hum1 | 10.8.2-1.20.20.2.1.hum1, 20.20.2-1.hum1 | Fixed |
| redhat/nodejs22-main(Red Hat hummingbird 1) | < 10.9.8-1.22.23.1.2.hum1; < 22.23.1-2.hum1 | 10.9.8-1.22.23.1.2.hum1, 22.23.1-2.hum1 | Fixed |
| redhat/nodejs24-main(Red Hat hummingbird 1) | < 11.16.0-1.24.18.0.0.2.hum1; < 24.18.0-0.2.hum1 | 11.16.0-1.24.18.0.0.2.hum1, 24.18.0-0.2.hum1 | Fixed |
| redhat/nodejs25-main(Red Hat hummingbird 1) | < 11.12.1-1.25.9.0.1.1.hum1; < 25.9.0-1.1.hum1 | 11.12.1-1.25.9.0.1.1.hum1, 25.9.0-1.1.hum1 | Fixed |
| redhat/nodejs26-main(Red Hat hummingbird 1) | < 11.17.0-1.26.4.0.1.3.hum1; < 26.4.0-1.3.hum1 | 11.17.0-1.26.4.0.1.3.hum1, 26.4.0-1.3.hum1 | Fixed |
| redhat/rust-main(Red Hat hummingbird 1) | < 1.96.1-1.hum1 | 1.96.1-1.hum1 | Fixed |
| redhat/yarnpkg-main(Red Hat hummingbird 1) | < 1.22.22-18.1.hum1 | 1.22.22-18.1.hum1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| nodeca js-yaml | = >= 5.0.0, < 5.2.0 | No fix listed |
| redhat/discovery/discovery-ui-rhel9:1788206196(Red Hat:discovery:2::el9) | All versions | No fix listed |
| redhat/dotnet8-0-main(Red Hat:hummingbird:1) | < 8.0.128-1.hum1 | 8.0.128-1.hum1 |
| redhat/nodejs26-main(Red Hat:hummingbird:1) | < 11.17.0-1.26.4.0.1.3.hum1 | 11.17.0-1.26.4.0.1.3.hum1 |
| redhat/nodejs26-main(Red Hat:hummingbird:1) | < 26.4.0-1.3.hum1 | 26.4.0-1.3.hum1 |
| redhat/nodejs24-main(Red Hat:hummingbird:1) | < 11.16.0-1.24.18.0.0.2.hum1 | 11.16.0-1.24.18.0.0.2.hum1 |
| redhat/nodejs24-main(Red Hat:hummingbird:1) | < 24.18.0-0.2.hum1 | 24.18.0-0.2.hum1 |
| redhat/rust-main(Red Hat:hummingbird:1) | < 1.96.1-1.hum1 | 1.96.1-1.hum1 |
| redhat/nodejs22-main(Red Hat:hummingbird:1) | < 10.9.8-1.22.23.1.2.hum1 | 10.9.8-1.22.23.1.2.hum1 |
| redhat/nodejs22-main(Red Hat:hummingbird:1) | < 22.23.1-2.hum1 | 22.23.1-2.hum1 |
| redhat/nodejs25-main(Red Hat:hummingbird:1) | < 11.12.1-1.25.9.0.1.1.hum1 | 11.12.1-1.25.9.0.1.1.hum1 |
| redhat/nodejs25-main(Red Hat:hummingbird:1) | < 25.9.0-1.1.hum1 | 25.9.0-1.1.hum1 |
| redhat/yarnpkg-main(Red Hat:hummingbird:1) | < 1.22.22-18.1.hum1 | 1.22.22-18.1.hum1 |
| redhat/nodejs20-main(Red Hat:hummingbird:1) | < 10.8.2-1.20.20.2.1.hum1 | 10.8.2-1.20.20.2.1.hum1 |
| redhat/nodejs20-main(Red Hat:hummingbird:1) | < 20.20.2-1.hum1 | 20.20.2-1.hum1 |
| npm js-yaml(npm) | >= 5.0.0, <= 5.1.0 | No fix listed |
| ubuntu/node-js-yaml(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/node-js-yaml(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/node-js-yaml(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/node-js-yaml(Ubuntu:26.10) | All versions | No fix listed |
| nodeca js-yaml | >= 5.0.0, < 5.2.0 | 5.2.0 |
| npm js-yaml(npm) | >= 5.0.0, < 5.2.0 | 5.2.0 |
References
- https://github.com/nodeca/js-yaml/security/advisories/GHSA-g796-fgmg-93mv exploit vendor-advisory
- https://github.com/nodeca/js-yaml/commit/3105455b81dee69e0fd36e09ac0b2ccfdb54adc1 patch
- https://github.com/nodeca/js-yaml/releases/tag/5.2.0 release-notes
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:61783 patch vendor-advisory
- RHSA-2026:26994 patch vendor-advisory
- RHSA-2026:33866 patch vendor-advisory
- RHSA-2026:34478 patch vendor-advisory
- RHSA-2026:34975 patch vendor-advisory
- RHSA-2026:35272 patch vendor-advisory
- RHSA-2026:7378 patch vendor-advisory
- RHSA-2026:7655 patch vendor-advisory
- RHSA-2026:9455 patch vendor-advisory
- Red Hat Bugzilla 2498114 issue-tracking
- www.cve.org
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- Ubuntu CVE tracker vendor-advisory
- Debian Security Tracker CVE-2026-59868 vendor-advisory
- github.com product