CVE-2026-73643
Description
js-yaml is a JavaScript YAML parser and dumper. From 5.0.0 until 5.2.2, parsing a small YAML document can take exponential time when an application calls load() or loadAll() on untrusted input. In src/parser/parser.ts, readFlowCollection uses restoreState and calls parseNode a second time when a flow-sequence entry is recognized as a key: value pair. If the key is a nested flow sequence of the same shape, every level is parsed twice, causing O(2^n) work and allowing an input under 200 bytes to keep one CPU busy for minutes, block the Node.js event loop, and stall the process. No anchors, aliases, merges, tags, or nondefault options are required. This issue is fixed in version 5.2.2.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
js-yamlnpm | >= 5.0.0, < 5.2.2 | 5.2.2 |
Affected products
6- osv-coords5 versionspkg:apk/wolfi/renovatepkg:apk/chainguard/authentik-fips-2026.2pkg:apk/chainguard/kubeflow-pipelines-frontendpkg:apk/chainguard/renovatepkg:apk/wolfi/kubeflow-pipelines-frontend
< 44.11.4-r0+ 4 more
- (no CPE)range: < 44.11.4-r0
- (no CPE)range: < 2026.2.6-r5
- (no CPE)range: < 2.17.0-r3
- (no CPE)range: < 44.11.4-r0
- (no CPE)range: < 2.17.0-r3
Patches
Vulnerability mechanics
References
4News mentions
0No linked articles in our index yet.