# CVE-2026-45149: brace-expansion: Large numeric range defeats documented `max` DoS protection

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-02)
- Published: 2026-05-18T16:22:01.000Z
- Modified: 2026-09-10T03:51:06.302Z
- Also known as: GHSA-jxxr-4gwj-5jf2
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- juliangruber brace-expansion: >= 5.0.0, < 5.0.6; from 5.0.0 before 5.0.6
- brace-expansion (npm): from 5.0.0 before 5.0.6

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## 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)

## Sources

- CVE List: [CVE-2026-45149](https://www.cve.org/CVERecord?id=CVE-2026-45149), CVE Terms of Use, modified 2026-06-01
- GitHub Advisory Database: [GHSA-jxxr-4gwj-5jf2](https://github.com/advisories/GHSA-jxxr-4gwj-5jf2), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-45149](https://nvd.nist.gov/vuln/detail/CVE-2026-45149), Public domain, modified 2026-07-22

---

Page: https://cve.day/CVE-2026-45149 · Whole record: https://cve.day/CVE-2026-45149.json · Rebuilt by cve.day 2026-11-25T22:59:23.363Z
