CVE-2026-102277Juliangruber Brace-expansion uncontrolled resource consumption
CVSS score
5.3
Medium
CVSS 3.1 from github.com
Exploit probability (EPSS)
0.43%
0.43% chance of exploitation in the next 30 days, higher than 37.9% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official description
The brace-expansion library generates arbitrary strings containing a common prefix and suffix. Prior to 1.1.21, 2.1.7, 3.0.9, and 5.0.12, the expand function handles untrusted {a},b}-shaped patterns with many trailing closing braces by restarting its scan once for each trailing closing brace. The successive full-input rescans with linear working-string growth cause quadratic CPU time and memory pressure that can block the Node.js event loop. The process eventually recovers, making the impact a recoverable CPU denial of service. This issue is fixed in versions 1.1.21, 2.1.7, 3.0.9, and 5.0.12.
Source: NVD · CNA: security-advisories@github.com
How to fix it, step by step
Check whether you're affected
Find every system running juliangruber Brace-expansion and compare its version with the affected versions.
Update to a fixed version
- Update Brace-expansion to 1.1.21, 2.1.7, 3.0.9, 5.0.12 or later, on the branch you run.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Affected products
| Affected products | Versions |
|---|---|
| juliangruber Brace-expansion | >= 4.0.0, < 5.0.12 · >= 3.0.0, < 3.0.9 · >= 2.0.0, < 2.1.7 · < 1.1.21 |
Weakness
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-102277 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.4% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-102277?
CVE-2026-102277 has a CVSS 3.1 base score of 5.3 (medium).
Which versions are affected?
Juliangruber Brace-expansion (>= 4.0.0, < 5.0.12; >= 3.0.0, < 3.0.9; >= 2.0.0, < 2.1.7; < 1.1.21)
Is there a patch for CVE-2026-102277?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/juliangruber/brace-expansion/commit/33a5ef17b8d800bbfa8c52b14c39043b6aac1a96
- github.com/juliangruber/brace-expansion/commit/bdff773f98e5988616b7039cc9b508df5d640b22
- github.com/juliangruber/brace-expansion/commit/c55e67d8d8b1c56a2474afff15c2891166b2d364
- github.com/juliangruber/brace-expansion/commit/ffdfa3e3806bed17c0874b8f1439b084de354a7e
- github.com/juliangruber/brace-expansion/security/advisories/GHSA-q2hr-2g5m-vwhr
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.