CVE Catalog

CVE-2026-53550

MediumCVSS 5.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.26%

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

Summary

A vulnerability in js-yaml (YAML parser for JavaScript) before versions 4.2.0 and 3.15.0 allows a DoS attack via a crafted YAML document that causes quadratic time complexity during merge-key (<<) processing. Repeatedly using the same alias in a merge sequence leads to CPU exhaustion and blocks the Node.js event loop for seconds with a relatively small payload (tens of KB).

Risk Assessment

An attacker can remotely cause a denial of service (DoS) in Node.js applications using js-yaml to parse untrusted YAML data, blocking the server or worker process for seconds with minimal data input.

Recommendation

Immediately update js-yaml to version 4.2.0 or later (for the main branch) or 3.15.0 or later (for the 3.x branch). If an update is not possible, restrict processing of untrusted YAML documents.

Other vulnerabilities in js-yaml

See all
Original NVD description (English source)

js-yaml is a JavaScript YAML parser and dumper. Prior to 4.2.0 and 3.15.0, a crafted YAML document can trigger algorithmic CPU exhaustion in js-yaml merge-key processing (<<) by repeating the same alias many times in a merge sequence. This causes quadratic parse-time behavior relative to input size and can block a Node.js worker/event loop for seconds with a relatively small payload (tens of KB), resulting in denial of service. The issue is in merge handling inside lib/loader.js. This vulnerability is fixed in 4.2.0 and 3.15.0.

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