CVE 5.3 MEDIUM

js-yaml: Quadratic-complexity DoS in merge key handling via repeated aliases_CVE-2026-53550

5.3 / 10
MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Description

js-yaml is a JavaScript YAML parser and dumper. Prior to 4.2.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.

Basic Information

ID CVE-2026-53550
Source GitHub_M
Published Jun 22, 2026 at 14:59

Affected Product

Vendor nodeca
Product js-yaml
Version < 4.2.0
Affected Versions nodeca js-yaml < 4.2.0

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.