Improper resource allocation In node-js-yaml
Description
js-yaml is a JavaScript YAML parser and dumper. Prior to 4.2.0 and 3.15.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 and 3.15.0.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Component | Affected version | Patched versions |
|---|---|---|---|
debian 14 | 4.2.0+~4.0.9-1 | ||
debian 12 | - | ||
debian 13 | - | ||
rpm rhel9 | - | - | |
npm | 4.2.0, 3.15.0 | ||
rpm rhel10 | - | - | |
rpm rhel8 | - | - |
Aliases
References