CVE Catalog

CVE-2026-59868

MediumCVSS 5.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.29%

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

Summary

A vulnerability in the js-yaml library (versions 5.0.0 through 5.2.0) causes quadratic CPU time when parsing YAML documents with merge keys enabled. A chain of mappings where each entry merges the previous one leads to excessive CPU load.

Risk Assessment

An attacker can send a specially crafted YAML document that slows down the server or application, leading to denial of service (DoS) due to CPU resource exhaustion.

Recommendation

Immediately update the js-yaml library to version 5.2.0 or later, which includes a fix that eliminates the quadratic processing time issue.

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.0, when merge keys are enabled, js-yaml can spend quadratic CPU time parsing a document whose size grows only linearly when a chain of mappings uses merge keys where each mapping merges the previous one. This issue is fixed in version 5.2.0.

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