CVE-2026-14257 Details
Description
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.
A denial-of-service vulnerability has been identified in the 'brace-expansion' package, versions through 5.0.7. The issue arises in the 'expand()' function, which, while it limits the number of results to a maximum (default 100,000), does not restrict the length of each result string. This oversight allows an attacker to chain multiple brace groups, keeping the result count under the limit while increasing the length of each result. The cumulative effect leads to memory exhaustion, causing the process to crash with an uncatchable out-of-memory error. For instance, about 7.5 KB of input can disrupt a default Node.js process. Any application that sends attacker-controlled strings to 'brace-expansion.expand()', either directly or through minimatch/glob patterns, is susceptible to this memory exhaustion attack.
Users can upgrade to 'brace-expansion' version 5.0.8 or later, where this vulnerability has been fixed by introducing a 'maxLength' option to cap the total output size and prevent memory exhaustion.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/juliangruber/brace-expansion | seal | Product |
| https://github.com/juliangruber/brace-expansion/commit/a1bd33999ea75262c4749fff3bbb0d1372bd07b5 | seal | Patch |
| https://www.npmjs.com/package/brace-expansion | seal | Product |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | seal |
| CWE-770 | Allocation of Resources Without Limits or Throttling | seal |
Affected Products
| Product | Versions |
|---|---|
| juliangruber brace-expansion | < 1.1.17 >= 2.0.0, < 2.1.3 >= 3.0.0, < 3.0.3 >= 4.0.0, < 5.0.8 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 24, 2026 | CVE Translated | [email protected] |
| Aug 27, 2026 | Reanalysis | [email protected] |
| Aug 26, 2026 | Initial Analysis | [email protected] |
| Jul 23, 2026 | CVE Modified | CISA-ADP |
| Jul 23, 2026 | New CVE Received | seal |