Resource exhaustion in js-yaml (npm) - #VU136866
Published: July 3, 2026
js-yaml (npm)
Detailed vulnerability description
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to uncontrolled resource consumption in the js-yaml parser when parsing YAML documents with merge keys enabled. A remote attacker can send a specially crafted YAML document containing a chain of merged mappings to cause a denial of service.
The issue occurs only when merge keys are enabled.