# CVE-2026-102278: brace-expansion: DoS via uncontrolled recursion on nested brace groups causing stack exhaustion

- Severity: High 7.5 (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:H`
- 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.49%, higher than 43% of CVEs (2026-12-01)
- Published: 2026-09-28T20:57:09.850Z
- Modified: 2026-10-01T15:17:25.593Z
- Also known as: GHSA-qhr7-859c-m2p7
- Weaknesses: CWE-400, CWE-674
- 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.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.

(As written by CVE List.)

## Affected

- juliangruber brace-expansion: >= 4.0.0, < 5.0.11; >= 3.0.0, < 3.0.8; >= 2.0.0, < 2.1.6; < 1.1.20
- brace-expansion (npm): from 4.0.0 before 5.0.11; from 3.0.0 before 3.0.8; from 2.0.0 before 2.1.6; before 1.1.20

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/juliangruber/brace-expansion/security/advisories/GHSA-qhr7-859c-m2p7> (web)
- <https://github.com/juliangruber/brace-expansion/commit/1efee7c397c191da6287a78ec19512476a966a7b> (web)
- <https://github.com/juliangruber/brace-expansion/commit/935d78f32f335b2ff76578e5c5e877d31ae9888c> (web)
- <https://github.com/juliangruber/brace-expansion/commit/de84f144e9816f30e25fc8179e2e1249ab6df0db> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-102278> (advisory)
- <https://github.com/juliangruber/brace-expansion> (package)

## Sources

- CVE List: [CVE-2026-102278](https://www.cve.org/CVERecord?id=CVE-2026-102278), CVE Terms of Use, modified 2026-10-01
- GitHub Advisory Database: [GHSA-qhr7-859c-m2p7](https://github.com/advisories/GHSA-qhr7-859c-m2p7), CC-BY-4.0, modified 2026-09-30
- NVD: [CVE-2026-102278](https://nvd.nist.gov/vuln/detail/CVE-2026-102278), Public domain, modified 2026-10-01

---

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