Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify input reaching brace-expansion/minimatch/glob
-
DeliveryCraft ~6KB deeply nested brace pattern
-
ExploitSubmit as untrusted glob/pattern
-
Executionexpand_() recurses per nesting level
-
ImpactNative stack exhausted, Node process terminates
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitable only when the application passes an attacker-controlled pattern string into brace-expansion's expand()/expand_() - directly, or transitively through minimatch or glob when a caller feeds untrusted glob/path patterns. The trigger payload is a deeply nested brace group (roughly >3,100 levels, ~6KB, e.g. many stacked '{' then 'a,b' then matching '}'); the single-part-set nesting is the cheapest payload. The crash occurs during expansion regardless of the max and maxLength output bounds, because the stack is exhausted before any output is produced. Limiting factors: the attacker input must actually reach the expander (many applications only expand trusted/static patterns), and Node.js is the affected runtime; no authentication, no user interaction, and no special configuration are required once untrusted input reaches the vulnerable call. |
| Impact | This is a moderate-priority availability issue in an extremely widely-used library, not a high-real-risk emergency. The CVSS 7.5 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) reflects an unauthenticated, low-complexity, availability-only denial of service - there is no confidentiality or integrity impact. All exploitation signals point to LOW likelihood of mass exploitation: no EPSS score is provided, the vulnerability is NOT in CISA KEV, and no weaponized public exploit exists (the advisory ships only regression tests demonstrating the crash, which serve as a trivial reproducer rather than an attack tool). The realistic risk is bounded by a NARROW trigger condition - an application must pass an attacker-controlled brace pattern into brace-expansion (directly or transitively via minimatch/glob) - which is uncommon in typical usage. Importantly, this is the THIRD sibling flaw in this library's expansion/parsing paths: it patches a recursion axis (nesting depth) that the earlier CVE-2026-14257 tail-iteration fix left unaddressed, and is distinct from the parse-side CVE-2026-102276. No conflicting signals: the network vector is appropriate for an abstract library whose input often originates from remote requests, though real reachability is entirely application-dependent. |
| Exploit ScenarioDerived | An attacker submits a deeply nested brace pattern such as '{'*3100 + 'a,b' + '}'*3100 (only ~6KB) to any endpoint or CLI that forwards untrusted input into brace-expansion - or into minimatch/glob, which depend on it. During expansion, expand_() recurses once per nesting level and exhausts the native call stack before any output-size limit applies, terminating the Node.js process. No public exploit code exists beyond the advisory's proof-of-concept test cases, but the payload is trivial to construct. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 28, 2026
Deeply nested brace patterns cause unbounded recursion in the npm brace-expansion library, exhausting the native stack and terminating the Node.js process (CWE-400). All versions prior to 1.1.20, 2.1.6, 3.0.8 and 5.0.11 are affected, and the trigger is remote and unauthenticated (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 7.5) whenever an application passes attacker-controlled input into expand()/expand_() - directly or transitively through minimatch or glob. A payload of roughly 3,100 stacked '{' followed by 'a,b' and matching '}' (about 6KB) is sufficient, and because the stack is consumed before any output is generated, neither the max nor maxLength output bounds prevent the crash; no public exploit code has been identified at time of analysis and the issue is not in CISA KEV, though its availability-only impact and deep embedding in the JavaScript toolchain make it relevant to any service that expands untrusted glob or path patterns.
RemediationAI
Vendor-released patch: upgrade brace-expansion to 1.1.20, 2.1.6, 3.0.8 or 5.0.11, selecting the release that matches the major line already present in your dependency tree, and refresh lockfiles so that every transitive copy resolved through minimatch and glob is updated to a fixed version (audit with npm ls brace-expansion and an ecosystem scanner to catch duplicated major versions). Where upgrading the library is not immediately possible, the practical compensating control is to bound nesting in the untrusted input before it reaches the expander - reject, escape or strip patterns whose brace nesting depth exceeds roughly 50 levels, or reject patterns containing more than a few kilobytes of unbalanced or stacked '{' characters at the request-validation boundary; this trades a small amount of pattern-syntax fidelity for stack safety, and any application that legitimately accepts very deep patterns would need that limit raised deliberately. Note that relying on the library's max and maxLength options is not a mitigation: the stack is exhausted before any output is produced, so lowering those bounds does not prevent the crash. Applications that only ever call expand() with static, developer-authored patterns are not exposed and can schedule the dependency bump through normal maintenance rather than as an emergency. Because the fix also adds a documented maxDepth option, operators on patched versions should set maxDepth to a low explicit value (for example 100) on any code path that processes external input, accepting that over-limit groups then return literal text rather than expanding; advisory and diff details are at https://github.com/juliangruber/brace-expansion/security/advisories/GHSA-qhr7-859c-m2p7 and https://github.com/juliangruber/brace-expansion/commit/1efee7c397c191da6287a78ec19512476a966a7b.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
brace-expansion implements shell-style brace expansion (for example '{a,b}' expanding to 'a' and 'b'), a primitive that underpins minimatch, glob and, indirectly, a large share of JavaScript build and routing tooling. The vulnerable code path is expand_(), which recurses once per level of brace nesting both when expanding a set's comma members and when re-wrapping a set whose body parses to a single part. The single-part-set form is the cheapest attack: it crashed the runtime at approximately 3,100 nesting levels from about 6KB of input, while a set nested inside every comma member crashed at roughly 3,900 levels. The fix commit notes that an earlier change for CVE-2026-14257 made the tail of chained groups iterative but left nesting depth unbounded, because nesting drives a separate recursion that the tail fix never touched; the root cause class is therefore uncontrolled resource consumption (CWE-400) realised specifically as uncontrolled recursion / stack exhaustion rather than memory or CPU growth. The patch introduces EXPANSION_MAX_DEPTH (default 1000) and threads a depth counter through expand(), returning the remaining pattern as a literal once the bound is exceeded - a truncating behaviour chosen to mirror the existing total-expansion semantics of max and maxLength instead of throwing. Because the failure occurs while unwinding nested frames, V8 raises a RangeError for exceeding the call stack and the process typically dies, so the reliability impact is per-request and process-wide rather than scoped to a single response.
Know when Node.js gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Untrusted pattern reaching the library is typically network-originated with a trivial low-complexity payload and no auth/interaction; impact is process termination only, so availability-high and confidentiality/integrity none.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
The brace-expansion library generates arbitrary strings containing a common prefix and suffix. Prior to 1.1.20, 2.1.6, 3.0.8, and 5.0.11, deeply nested brace groups cause expand_() to recurse once per nesting level at comma-member and single-set expansion sites, exhausting the native stack before output limits can apply and potentially terminating the Node.js process. expand_ performs uncontrolled recursion for nested brace alternatives and single-part sets. deeply nested brace groups supplied as an untrusted pattern. expand_ is affected. expand is affected. Comma members is affected. Single set is affected. native stack exhaustion during nested sub-expansion. process-terminating denial of service. This issue is fixed in versions 1.1.20, 2.1.6, 3.0.8, and 5.0.11.
Blast Radius
ecosystem impact- 2,867 npm packages depend on brace-expansion (65 direct, 2,826 indirect)
Ecosystem-wide dependent count for version 4.0.0.
Articles & Coverage 1
Technical POC Analysis
CWE-400 (Uncontrolled Resource Consumption), specifically CWE-674 (Uncontrolled Recursion).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
The npm brace-expansion library, a foundational component used by minimatch and glob across the JavaScript ecosystem, contains a high-severity denial-of-service vulnerability (CVE-2026-102278) that allows unauthenticated remote attackers to crash Node.js processes with a small crafted payload. Organizations running Node.js services that process user-supplied glob or path patterns are at risk of service outages until affected versions are upgraded. No public exploit code or active exploitation has been identified, but the broad dependency footprint makes this a priority for availability-focused remediation.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
EUVD-2026-88555
GHSA-qhr7-859c-m2p7
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB