# CVE-2026-102277: brace-expansion: Quadratic-time expansion of the `{a},b}` rewrite causes CPU denial of service

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 39% of CVEs (2026-12-01)
- Published: 2026-09-28T20:54:46.160Z
- Modified: 2026-09-30T19:57:08.043Z
- Also known as: GHSA-q2hr-2g5m-vwhr
- Weaknesses: CWE-400, CWE-407
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## 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
- brace-expansion (npm): from 4.0.0 before 5.0.12; from 3.0.0 before 3.0.9; from 2.0.0 before 2.1.7; before 1.1.21

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/juliangruber/brace-expansion/security/advisories/GHSA-q2hr-2g5m-vwhr> (web)
- <https://github.com/juliangruber/brace-expansion/commit/33a5ef17b8d800bbfa8c52b14c39043b6aac1a96> (web)
- <https://github.com/juliangruber/brace-expansion/commit/bdff773f98e5988616b7039cc9b508df5d640b22> (web)
- <https://github.com/juliangruber/brace-expansion/commit/c55e67d8d8b1c56a2474afff15c2891166b2d364> (web)
- <https://github.com/juliangruber/brace-expansion/commit/ffdfa3e3806bed17c0874b8f1439b084de354a7e> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-102277> (advisory)
- <https://github.com/juliangruber/brace-expansion> (package)

## Sources

- CVE List: [CVE-2026-102277](https://www.cve.org/CVERecord?id=CVE-2026-102277), CVE Terms of Use, modified 2026-09-29
- GitHub Advisory Database: [GHSA-q2hr-2g5m-vwhr](https://github.com/advisories/GHSA-q2hr-2g5m-vwhr), CC-BY-4.0, modified 2026-09-30
- NVD: [CVE-2026-102277](https://nvd.nist.gov/vuln/detail/CVE-2026-102277), Public domain, modified 2026-09-30

---

Page: https://cve.day/CVE-2026-102277 · Whole record: https://cve.day/CVE-2026-102277.json · Rebuilt by cve.day 2026-11-25T22:59:41.393Z
