CVE Catalog

CVE-2026-59870

MediumCVSS 5.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.36%

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

Summary

A vulnerability in the js-yaml library (versions 5.0.0 through 5.2.0) causes excessive CPU consumption when parsing a crafted YAML document with the !!omap tag. The omapTag.addItem() function performs a linear duplicate-key scan on every insertion, resulting in O(n^2) computational complexity.

Risk Assessment

An attacker can send a specially crafted YAML document, causing significant CPU load on the server (DoS attack), which may lead to application slowdown or denial of service.

Recommendation

Immediately update the js-yaml library to version 5.2.1 or later, which contains the fix for this vulnerability.

Other vulnerabilities in js-yaml

See all
Original NVD description (English source)

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.

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