CVE-2026-45149
HIGH 7.5CVSS 3.1brace-expansion: Large numeric range defeats documented `max` DoS protection
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.
- Published
- 29 May 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-400
- Also known as
- GHSA-jxxr-4gwj-5jf2
- Sources
- NVDJSONOSV GHSA-jxxr-4gwj-5jf2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | juliangruber | brace-expansioncpe:2.3:a:juliangruber:brace-expansion:*:*:*:*:*:node.js:*:* |
>= 5.0.0, < 5.0.6 | 5.0.6 |
| OSV | npm | brace-expansion | >= 5.0.0, < 5.0.6 | 5.0.6 |
References
- https://github.com/juliangruber/brace-expansion/security/advisories/GHSA-jxxr-4gwj-5jf2 · Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-45149 · ADVISORY
- https://github.com/juliangruber/brace-expansion/commit/c0b095bdc52bc4c36dc88deddbadabc49f8371e5 · WEB
- https://github.com/juliangruber/brace-expansion · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 29 May 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 18 May 2026)