Vulnerability Details CVE-2026-59870
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.
Exploit prediction scoring system (EPSS) score
EPSS Score 0.007
EPSS Ranking 50.7%
CVSS Severity
CVSS v3 Score 7.5
Products affected by CVE-2026-59870
-
cpe:2.3:a:nodeca:js-yaml:5.0.0
-
cpe:2.3:a:nodeca:js-yaml:5.1.0
-
cpe:2.3:a:nodeca:js-yaml:5.2.0