Inefficient Algorithmic Complexity in js-yaml (npm) - CVE-2026-53550

 

Inefficient Algorithmic Complexity in js-yaml (npm) - CVE-2026-53550

Published: July 3, 2026


Vulnerability identifier: #VU136864
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-53550
CWE-ID: CWE-407
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to algorithmic complexity in merge-key processing in lib/loader.js when parsing crafted YAML documents with repeated aliases in a merge sequence. A remote attacker can submit a specially crafted YAML document to cause a denial of service.

The issue causes quadratic parse-time behavior relative to input size and can block a Node.js worker or event loop for seconds with a relatively small payload.


Affected software

js-yaml (npm)

How to mitigate CVE-2026-53550

Install security update from vendor's website.

js-yaml (npm) - addressed in versions 3.15.0, 4.2.0

External References

Related Security Bulletins