CVE-2026-53550
MEDIUM 5.3CVSS 3.1JS-YAML: Quadratic-complexity DoS in merge key handling via repeated aliases
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.
- Published
- 22 Jun 2026
- Last modified
- 25 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-407
- Also known as
- GHSA-h67p-54hq-rp68
- Sources
- NVDJSONOSV GHSA-h67p-54hq-rp68JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nodeca | js-yamlcpe:2.3:a:nodeca:js-yaml:*:*:*:*:*:node.js:*:* |
< 3.15.0 | 3.15.0 |
| NVD | nodeca | js-yamlcpe:2.3:a:nodeca:js-yaml:*:*:*:*:*:node.js:*:* |
>= 4.0.0, < 4.2.0 | 4.2.0 |
| OSV | npm | js-yaml | >= 4.0.0, < 4.2.0 | 4.2.0 |
| OSV | npm | js-yaml | < 3.15.0 | 3.15.0 |
References
- https://github.com/nodeca/js-yaml/security/advisories/GHSA-h67p-54hq-rp68 · Exploit, Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-53550 · ADVISORY
- https://github.com/nodeca/js-yaml · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 22 Jun 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 15 Jun 2026)