High severity7.5OSV Advisory· Published Jul 8, 2026· Updated Oct 6, 2026
CVE-2026-59870
CVE-2026-59870
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
js-yamlnpm | >= 5.0.0, < 5.2.1 | 5.2.1 |
Affected products
5- osv-coords2 versions
< 44.3.3-r0+ 1 more
- (no CPE)range: < 44.3.3-r0
- (no CPE)range: < 44.3.3-r0
Patches
Vulnerability mechanics
References
9- github.com/nodeca/js-yaml/commit/39f3211a2f01b3c6982710cf21434ab7060acefenvdPatchWEB
- github.com/nodeca/js-yaml/security/advisories/GHSA-724g-mxrg-4qvmnvdExploitVendor AdvisoryWEB
- github.com/advisories/GHSA-724g-mxrg-4qvmghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-59870ghsaADVISORY
- github.com/nodeca/js-yaml/releases/tag/5.2.1nvdRelease NotesWEB
- github.com/nodeca/js-yaml/commit/22a8071ef032117bc6249c330b240ac3aa2d3dednvd
- github.com/nodeca/js-yaml/commit/c3cc4b0bb9ddb9af2dd9b61e0d56f5ce7983cd4anvd
- github.com/nodeca/js-yaml/releases/tag/3.15.1nvd
- github.com/nodeca/js-yaml/releases/tag/4.3.1nvd
News mentions
1- Nodeca Js YAML: Three CPU-Exhausting Parsing Vulnerabilities Disclosed TogetherVypr Intelligence · Jul 9, 2026