CVE-2026-45149
CVE-2026-45149 · brace-expansion: Large numeric range defeats documented `max` DoS protection
This page contains facts from public vulnerability sources. Check the original advisory before updating.
The brace-expansion library generates arbitrary strings containing a common prefix and suffix. From 5.0.0 to before 5.0.6, the max option was being applied too late. When expanding a single large numeric range like {1..10000000}, the sequence generation loop generates all 10 million intermediate elements before the max limit is applied With max=10, the output is correctly limited to 10 items, but the process still allocates ~505 MB and spends ~800ms building the full intermediate array. This vulnerability is fixed in 5.0.6.
CVSS 6.5 · Medium · EPSS 0.3% · Fix available
- Published
- Updated
Affected products and versions
brace-expansion
- Versions
- >= 5.0.0, < 5.0.6: Affected
No fix published
node-brace-expansion Debian:12
- Versions
- 2.0.1+~1.1.0-1
- 2.0.1+~1.1.0-2
- 2.0.1-2
- 2.0.3+~1.1.2-1
- 2.0.3+~1.1.2-2
- 2.0.3+~1.1.2-3
- 2.1.4+~1.1.2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-brace-expansion Debian:13
- Versions
- 2.0.1+~1.1.0-2
- 2.0.3+~1.1.2-1
- 2.0.3+~1.1.2-2
- 2.0.3+~1.1.2-3
- 2.1.4+~1.1.2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-brace-expansion Debian:14
- Versions
- 2.0.1+~1.1.0-2
- 2.0.3+~1.1.2-1
- 2.0.3+~1.1.2-2
- Affected ranges
- ECOSYSTEM: < 2.0.3+~1.1.2-3
Update to 2.0.3+~1.1.2-3
brace-expansion npm
- Affected ranges
- SEMVER: ≥ 5.0.0, < 5.0.6
Update to 5.0.6
node-brace-expansion Ubuntu:18.04:LTS
- Versions
- 1.1.8-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-brace-expansion Ubuntu:20.04:LTS
- Versions
- 1.1.8-1
- 1.1.11-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-brace-expansion Ubuntu:22.04:LTS
- Versions
- 2.0.0-1
- 2.0.1-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-brace-expansion Ubuntu:24.04:LTS
- Versions
- 2.0.1-2
- 2.0.1+~1.1.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-brace-expansion Ubuntu:25.10
- Versions
- 2.0.1+~1.1.0-1
- 2.0.1+~1.1.0-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-brace-expansion Ubuntu:26.10
- Versions
- 2.0.1+~1.1.0-2
- 2.0.3+~1.1.2-2
- 2.0.3+~1.1.2-3
- 2.1.4+~1.1.2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-brace-expansion Ubuntu:26.04:LTS
- Versions
- 2.0.1+~1.1.0-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published