Medium severity5.3OSV Advisory· Published Jul 8, 2026· Updated Jul 10, 2026
CVE-2026-59870
CVE-2026-59870
Description
js-yaml is a JavaScript YAML parser and dumper. From 5.0.0 before 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. This issue is fixed in version 5.2.1.
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
5- 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
News mentions
1- Nodeca Js YAML: Three CPU-Exhausting Parsing Vulnerabilities Disclosed TogetherVypr Intelligence · Jul 9, 2026