# CVE-2026-33750: brace-expansion: Zero-step sequence causes process hang and memory exhaustion

- 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.50%, higher than 44% of CVEs (2026-12-01)
- Published: 2026-03-26T18:29:42.000Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-f886-m6hf-6m8v
- 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. Prior to versions 5.0.5, 3.0.2, 2.0.3, and 1.1.13, a brace pattern with a zero step value (e.g., `{1..2..0}`) causes the sequence generation loop to run indefinitely, making the process hang for seconds and allocate heaps of memory. Versions 5.0.5, 3.0.2, 2.0.3, and 1.1.13 fix the issue. As a workaround, sanitize strings passed to `expand()` to ensure a step value of `0` is not used.

(As written by CVE List.)

## Affected

- juliangruber brace-expansion: >= 4.0.0, < 5.0.5; >= 3.0.0, < 3.0.2; >= 2.0.0, < 2.0.3; < 1.1.13; before 1.1.13; from 2.0.0 before 2.0.3; from 3.0.0 before 3.0.2; from 5.0.0 before 5.0.5
- brace-expansion (npm): from 4.0.0 before 5.0.5; from 3.0.0 before 3.0.2; from 2.0.0 before 2.0.3; before 1.1.13

## 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-f886-m6hf-6m8v> (mitigation, vendor-advisory, web)
- <https://github.com/juliangruber/brace-expansion/issues/98> (issue-tracking, web)
- <https://github.com/juliangruber/brace-expansion/pull/95> (issue-tracking, patch, web)
- <https://github.com/juliangruber/brace-expansion/pull/96> (issue-tracking, patch, web)
- <https://github.com/juliangruber/brace-expansion/pull/97> (issue-tracking, patch, web)
- <https://github.com/juliangruber/brace-expansion/commit/311ac0d54994158c0a384e286a7d6cbb17ee8ed5> (patch, web)
- <https://github.com/juliangruber/brace-expansion/commit/7fd684f89fdde3549563d0a6522226a9189472a2> (patch, web)
- <https://github.com/juliangruber/brace-expansion/commit/b9cacd9e55e7a1fa588fe4b7bb1159d52f1d902a> (patch, web)
- <https://github.com/juliangruber/brace-expansion/blob/daa71bcb4a30a2df9bcb7f7b8daaf2ab30e5794a/src/index.ts#L107-L113> (patch, web)
- <https://github.com/juliangruber/brace-expansion/blob/daa71bcb4a30a2df9bcb7f7b8daaf2ab30e5794a/src/index.ts#L184> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33750> (advisory)
- <https://github.com/juliangruber/brace-expansion> (package)

## Sources

- CVE List: [CVE-2026-33750](https://www.cve.org/CVERecord?id=CVE-2026-33750), CVE Terms of Use, modified 2026-03-27
- GitHub Advisory Database: [GHSA-f886-m6hf-6m8v](https://github.com/advisories/GHSA-f886-m6hf-6m8v), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-33750](https://nvd.nist.gov/vuln/detail/CVE-2026-33750), Public domain, modified 2026-10-26

---

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