CVE-2026-59870: js-yaml is a JavaScript YAML parser and dumper
CVE-2026-59870 is a high-severity flaw (CVSS 7.5) affecting js-yaml. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- High severity
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Last updated 2026-10-25 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-59870?
js-yaml: upgrade to 5.2.1. Exact commands for each OS are on this page.
Is CVE-2026-59870 being exploited?
CVE-2026-59870 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-59870 affect?
CVE-2026-59870 affects js-yaml. Severity is high (CVSS 7.5). 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, causin
How urgent is CVE-2026-59870?
Priority 50/100. High severity; Public exploit reference; Remotely exploitable, no login, no user action
Related CVEs
- CVE-2026-59869 HIGH 7.5 UPGRADE js-yaml is a JavaScript YAML parser and dumper
- CVE-2026-59868 MEDIUM 5.3 UPGRADE js-yaml is a JavaScript YAML parser and dumper