Resource exhaustion in Nodeca Js-Yaml

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.

Published · last modified .

CVSS v3 metric

CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

EPSS exploit prediction

EPSS: 0.007 (53.2th percentile), scored .

Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 53rd percentile — 53.2% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2026-59870: held from 0.006 to 0.007.

EPSS over last 30 days · oldest: 0.006 · newest: 0.007 · change: +0.001

Affected products

  • Nodeca Js-Yaml — versions >= 3.0.0, < 3.15.1, >= 5.0.0, < 5.2.1, >= 4.0.0, < 4.3.1

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-59870?
CVE-2026-59870 is a high-severity vulnerability in Nodeca Js-Yaml, classified under Inefficient Algorithmic Complexity. CVSS score: 7.5/10. Published 2026-07-08.
How severe is CVE-2026-59870?
High severity. CVSS v3 base score is 7.5 out of 10.