Inefficient Algorithmic Complexity in js-yaml (npm) - #VU163162
Published: November 9, 2026
Vulnerability details
The vulnerability allows an unauthenticated remote attacker to cause prolonged CPU consumption and reduce availability in applications using js-yaml.
The vulnerability exists due to maxTotalMergeKeys not counting empty mappings when the YAML loader processes merge keys, allowing repeated merges to bypass the configured limit. An unauthenticated remote attacker can submit a relatively small YAML document that repeatedly merges a large sequence of empty mappings, causing excessive processing when merge keys are enabled.