CVE-2026-73643
CVE-2026-73643 · js-yaml: Exponential parsing time in the flow collections leads to denial of service
Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.
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.
CVSS 7.5 · Élevée · EPSS 0,5% · Correctif disponible
- Publication
- Mise à jour
Pile logicielle: system · node
Produits et versions concernés
js-yaml
- Versions du logiciel
- >= 5.0.0, < 5.2.2: Concernée
Aucun correctif publié
js-yaml npm
- Plages de versions concernées
- SEMVER: ≥ 5.0.0, < 5.2.2
Mettez à jour vers 5.2.2
node-js-yaml Ubuntu:18.04:LTS
- Versions du logiciel
- 3.9.1+dfsg-1
- 3.10.0+dfsg-1
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
node-js-yaml Ubuntu:20.04:LTS
- Versions du logiciel
- 3.13.1+dfsg-2
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
node-js-yaml Ubuntu:22.04:LTS
- Versions du logiciel
- 3.14.1+dfsg+~3.12.6-2
- 4.1.0+dfsg+~4.0.5-4ubuntu1
- 4.1.0+dfsg+~4.0.5-5
- 4.1.0+dfsg+~4.0.5-6
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
node-js-yaml Ubuntu:24.04:LTS
- Versions du logiciel
- 4.1.0+dfsg+~4.0.5-7
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
node-js-yaml Ubuntu:26.10
- Versions du logiciel
- 4.1.1+dfsg+~4.0.9-1
- 4.2.0+~4.0.9-1
- 4.2.0+~4.0.9-2
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
node-js-yaml Ubuntu:26.04:LTS
- Versions du logiciel
- 4.1.0+dfsg+~4.0.5-7
- 4.1.1+dfsg+~4.0.9-1
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié