CVE-2026-102276: CWE-400: Uncontrolled Resource Consumption in juliangruber brace-expansion
The brace-expansion library versions prior to 1.1.19, 2.1.5, 3.0.7, and 5.0.10 contain a vulnerability where crafted brace patterns can exhaust the native stack during parsing. This occurs because the parseCommaParts function recursively processes brace groups and uses push.apply with very large arrays, leading to stack exhaustion and potential Node.js process termination. This results in a denial of service condition. The issue is fixed in the specified versions.
AI Analysis
Technical Summary
The brace-expansion library generates strings from brace patterns with common prefixes and suffixes. In affected versions, the parseCommaParts function recursively processes the remainder of the pattern once per brace group and uses push.apply to pass every element of a large comma-part array as function arguments. Patterns with many comma-separated brace groups trigger recursive and argument-array native stack exhaustion before output limits can be applied, causing process termination. This uncontrolled resource consumption vulnerability is addressed in versions 1.1.19, 2.1.5, 3.0.7, and 5.0.10.
Potential Impact
Successful exploitation of this vulnerability can cause the Node.js process using the brace-expansion library to terminate unexpectedly due to native stack exhaustion. This results in a denial of service condition with no impact on confidentiality or integrity.
Mitigation Recommendations
Upgrade the brace-expansion library to version 1.1.19, 2.1.5, 3.0.7, or 5.0.10 or later, depending on the major version in use. These versions contain fixes that prevent native stack exhaustion during brace pattern parsing.
CVE-2026-102276: CWE-400: Uncontrolled Resource Consumption in juliangruber brace-expansion
Description
The brace-expansion library versions prior to 1.1.19, 2.1.5, 3.0.7, and 5.0.10 contain a vulnerability where crafted brace patterns can exhaust the native stack during parsing. This occurs because the parseCommaParts function recursively processes brace groups and uses push.apply with very large arrays, leading to stack exhaustion and potential Node.js process termination. This results in a denial of service condition. The issue is fixed in the specified versions.
CVSS v3.1
Score 7.5high
Affected software
juliangruber
brace-expansion
pkg:npm/brace-expansionRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The brace-expansion library generates strings from brace patterns with common prefixes and suffixes. In affected versions, the parseCommaParts function recursively processes the remainder of the pattern once per brace group and uses push.apply to pass every element of a large comma-part array as function arguments. Patterns with many comma-separated brace groups trigger recursive and argument-array native stack exhaustion before output limits can be applied, causing process termination. This uncontrolled resource consumption vulnerability is addressed in versions 1.1.19, 2.1.5, 3.0.7, and 5.0.10.
Potential Impact
Successful exploitation of this vulnerability can cause the Node.js process using the brace-expansion library to terminate unexpectedly due to native stack exhaustion. This results in a denial of service condition with no impact on confidentiality or integrity.
Mitigation Recommendations
Upgrade the brace-expansion library to version 1.1.19, 2.1.5, 3.0.7, or 5.0.10 or later, depending on the major version in use. These versions contain fixes that prevent native stack exhaustion during brace pattern parsing.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-09-28T20:11:16.658Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6abad639f7a7c54106343f77
Added to database: 09/28/2026, 21:03:53 UTC
Last enriched: 09/28/2026, 21:17:39 UTC
Last updated: 09/28/2026, 21:18:29 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.