Medium severity5.3NVD Advisory· Published Sep 28, 2026· Updated Sep 30, 2026
CVE-2026-102277
CVE-2026-102277
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.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
brace-expansionnpm | >= 4.0.0, < 5.0.12 | 5.0.12 |
brace-expansionnpm | >= 3.0.0, < 3.0.9 | 3.0.9 |
brace-expansionnpm | >= 2.0.0, < 2.1.7 | 2.1.7 |
brace-expansionnpm | < 1.1.21 | 1.1.21 |
Affected products
15- Range: <1.1.21, <2.1.7, <3.0.9, <5.0.12
- osv-coords14 versionspkg:rpm/almalinux/nodejspkg:rpm/almalinux/nodejs-develpkg:rpm/almalinux/nodejs-docspkg:rpm/almalinux/nodejs-full-i18npkg:rpm/almalinux/nodejs-libspkg:rpm/almalinux/nodejs-nodemonpkg:rpm/almalinux/nodejs-packagingpkg:rpm/almalinux/nodejs-packaging-bundlerpkg:rpm/almalinux/npmpkg:rpm/almalinux/v8-13.6-develpkg:rpm/opensuse/agama-web-ui&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/pi-coding-agent&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/pi-coding-agent&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/velociraptor&distro=openSUSE%20Tumbleweed
< 1:24.22.1-1.module_el8.10.0+4331+0683c9c1+ 13 more
- (no CPE)range: < 1:24.22.1-1.module_el8.10.0+4331+0683c9c1
- (no CPE)range: < 1:24.22.1-1.module_el8.10.0+4331+0683c9c1
- (no CPE)range: < 1:24.22.1-1.module_el8.10.0+4331+0683c9c1
- (no CPE)range: < 1:24.22.1-1.module_el8.10.0+4331+0683c9c1
- (no CPE)range: < 1:24.22.1-1.module_el8.10.0+4331+0683c9c1
- (no CPE)range: < 3.1.14-2.module_el8.10.0+4250+09238ed4
- (no CPE)range: < 2021.06-6.module_el8.10.0+4086+70facd4a
- (no CPE)range: < 2021.06-6.module_el8.10.0+4086+70facd4a
- (no CPE)range: < 1:11.19.1-1.24.22.1.1.module_el8.10.0+4331+0683c9c1
- (no CPE)range: < 3:13.6.233.17-1.24.22.1.1.module_el8.10.0+4331+0683c9c1
- (no CPE)range: < 25+475.275dd4727-56.1
- (no CPE)range: < 1.0.4-bp160.1.1
- (no CPE)range: < 1.0.0-1.1
- (no CPE)range: < 0.77.3.0.git141.b1612b50b-1.1
Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-q2hr-2g5m-vwhrghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-102277ghsaADVISORY
- github.com/juliangruber/brace-expansion/commit/33a5ef17b8d800bbfa8c52b14c39043b6aac1a96nvdWEB
- github.com/juliangruber/brace-expansion/commit/bdff773f98e5988616b7039cc9b508df5d640b22nvdWEB
- github.com/juliangruber/brace-expansion/commit/c55e67d8d8b1c56a2474afff15c2891166b2d364nvdWEB
- github.com/juliangruber/brace-expansion/commit/ffdfa3e3806bed17c0874b8f1439b084de354a7envdWEB
- github.com/juliangruber/brace-expansion/security/advisories/GHSA-q2hr-2g5m-vwhrnvdWEB
News mentions
0No linked articles in our index yet.