CVE-2026-14257Juliangruber 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
- Jul 23, 2026
- Updated
- Oct 24, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · 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
brace-expansion through 5.0.7 is vulnerable to denial of service via memory exhaustion. The expand() function limits the number of results with a max option (default 100,000) but does not bound the length of each result string. By chaining multiple brace groups, an attacker keeps the result count under the limit while making each result progressively longer, so total memory scales with both count and string length until the process hits a fatal, uncatchable out-of-memory error. About 7.5 KB of input ('{a,b}'.repeat(1500)) crashes a default Node.js process. Any application that passes attacker-influenced strings to brace-expansion.expand() - directly or transitively via minimatch / glob brace patterns - can be crashed by a small request. Fixed in 5.0.8 by adding a maxLength option (default 4,000,000) that bounds accumulated output and intermediate arrays.
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.8 |
5.0.8 |
npm install brace-expansion@5.0.8 |
| npm | brace-expansion |
≥ 3.0.0 < 3.0.3 |
3.0.3 |
npm install brace-expansion@3.0.3 |
| npm | brace-expansion |
≥ 2.0.0 < 2.1.3 |
2.1.3 |
npm install brace-expansion@2.1.3 |
| npm | brace-expansion |
< 1.1.17 |
1.1.17 |
npm install brace-expansion@1.1.17 |
Per OSV / GitHub Advisories (GHSA-mh99-v99m-4gvg). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| juliangruber | brace-expansion | < 1.1.17 |
| juliangruber | brace-expansion | ≥ 2.0.0 < 2.1.3 |
| juliangruber | brace-expansion | ≥ 3.0.0 < 3.0.3 |
| juliangruber | brace-expansion | ≥ 4.0.0 < 5.0.8 |
Official advisories
- velociraptor-0.76.7.0.git145.b60ef1146-1.1 on GA media · SUSE · openSUSE-SU-2026:12070-1 · Oct 6, 2026 Critical
- Red Hat Security Advisory: nodejs22 security update · Red Hat · RHSA-2026:64817 · Sep 8, 2026 High
- Red Hat Security Advisory: nodejs:22 security update · Red Hat · RHSA-2026:62416 · Sep 3, 2026 High
- Red Hat Security Advisory: nodejs:24 security update · Red Hat · RHSA-2026:55603 · Aug 26, 2026 High
Also: Red Hat (+12)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Product
- github.com Patch
- www.npmjs.com Product