CVE Catalog

CVE-2026-59870

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.64%

49th percentile - higher than 49% of all known CVEs

Summary

js-yaml prior to versions 3.15.1, 4.3.1, and 5.2.1 contains a vulnerability in YAML11_SCHEMA support for the !!omap tag in src/tag/sequence/omap.ts. The omapTag.addItem() function performs 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.

Risk Assessment

Risk of DoS attack via excessive CPU consumption when parsing malicious YAML documents, potentially leading to service unavailability.

Recommendation

Upgrade js-yaml to version 3.15.1, 4.3.1, or 5.2.1 depending on the version in use.

Other vulnerabilities in js-yaml

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS