CVE-2026-33750Juliangruber Brace-expansion
High 7.5 No auth needed
Follow: this CVE · Juliangruber · Juliangruber Brace-expansion We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Mar 27, 2026
- Updated
- Oct 26, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-400
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Brace-expansion.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | brace-expansion |
≥ 4.0.0 < 5.0.5 |
5.0.5 |
npm install brace-expansion@5.0.5 |
| npm | brace-expansion |
≥ 3.0.0 < 3.0.2 |
3.0.2 |
npm install brace-expansion@3.0.2 |
| npm | brace-expansion |
≥ 2.0.0 < 2.0.3 |
2.0.3 |
npm install brace-expansion@2.0.3 |
| npm | brace-expansion |
< 1.1.13 |
1.1.13 |
npm install brace-expansion@1.1.13 |
Per OSV / GitHub Advisories (GHSA-f886-m6hf-6m8v). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| juliangruber | brace-expansion | < 1.1.13 |
| juliangruber | brace-expansion | ≥ 2.0.0 < 2.0.3 |
| juliangruber | brace-expansion | ≥ 3.0.0 < 3.0.2 |
| juliangruber | brace-expansion | ≥ 5.0.0 < 5.0.5 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Patch
- github.com Patch
- github.com Patch
- github.com Issue Tracking
- github.com Issue Tracking Patch
- github.com Issue Tracking Patch
- github.com Issue Tracking Patch
- github.com Mitigation Vendor Advisory