Inefficient Algorithmic Complexity in js-yaml (npm) - #VU140666
Published: August 1, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to inefficient algorithmic complexity in readFlowCollection in parser.ts when parsing untrusted YAML flow collections via load() or loadAll(). A remote attacker can send a specially crafted small YAML document to cause a denial of service.
A single request can keep one CPU busy for minutes or longer and block the Node event loop, which can stall the whole process.