CVE-2026-59870 js-yaml quadratic-complexity denial of service via YAML11_SCHEMA !!omap parsing
HighCVSS 7.5
EPSS 0.74%
- 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. Prior to 3.15.1, 4.3.1, and 5.2.1, YAML11_SCHEMA support for the !!omap tag in src/tag/sequence/omap.ts uses omapTag.addItem() to perform a linear duplicate-key scan on every insertion, causing O(n^2) CPU consumption when yaml.load() parses a crafted ordered-map document. In v3 and v4, !!omap is active and exploitable by default. v5 doesn't use !!omap by default, and the chances of activating it are very low.This issue is fixed in 3.15.1, 4.3.1, and 5.2.1.
Upgrade path
15 packages: 10 fixed, 5 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/discovery/discovery-ui-rhel9(Red Hat discovery 2 el8) | 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 | = >= 3.0.0, < 3.15.1; = >= 4.0.0, < 4.3.1; = >= 5.0.0, < 5.2.1; >= 5.0.0, < 5.2.1 | 5.2.1 | Fixed |
| npm js-yaml(npm) | >= 5.0.0, < 5.2.1; >= 5.0.0, <= 5.2.0 | 5.2.1 | 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.1 | No fix listed |
| nodeca js-yaml | = >= 3.0.0, < 3.15.1 | No fix listed |
| nodeca js-yaml | = >= 4.0.0, < 4.3.1 | 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 |
| redhat/discovery/discovery-ui-rhel9(Red Hat:discovery:2::el8) | All versions | No fix listed |
| npm js-yaml(npm) | >= 5.0.0, <= 5.2.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.1 | 5.2.1 |
| npm js-yaml(npm) | >= 5.0.0, < 5.2.1 | 5.2.1 |
References
- https://github.com/nodeca/js-yaml/security/advisories/GHSA-724g-mxrg-4qvm exploit vendor-advisory
- https://github.com/nodeca/js-yaml/commit/22a8071ef032117bc6249c330b240ac3aa2d3ded
- https://github.com/nodeca/js-yaml/commit/39f3211a2f01b3c6982710cf21434ab7060acefe patch
- https://github.com/nodeca/js-yaml/commit/c3cc4b0bb9ddb9af2dd9b61e0d56f5ce7983cd4a
- https://github.com/nodeca/js-yaml/releases/tag/3.15.1
- https://github.com/nodeca/js-yaml/releases/tag/4.3.1
- https://github.com/nodeca/js-yaml/releases/tag/5.2.1 release-notes
- Red Hat CVE page mitigation 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 2498130 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-59870 vendor-advisory
- github.com product
- ENISA EUVD EUVD-2026-42300 third-party-advisory