# CVE-2026-102276: brace-expansion: DoS via uncontrolled recursion in parseCommaParts 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:50:59.984Z
- Modified: 2026-09-30T19:57:08.043Z
- Also known as: GHSA-6j4f-fj2g-mc7p
- 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.19, 2.1.5, 3.0.7, and 5.0.10, crafted brace patterns can exhaust the native stack in parseCommaParts because parseCommaParts recursively processes the remainder once per brace group and uses push.apply to pass every element of a very large comma-part array as a function argument. Patterns containing many comma-separated brace groups trigger the recursive path, while the large array triggers the argument-array path without deep recursion. These paths cause recursive and argument-array native stack exhaustion before max or maxLength can limit output, potentially terminating the Node.js process in a process-terminating denial of service. This issue is fixed in versions 1.1.19, 2.1.5, 3.0.7, and 5.0.10.

(As written by CVE List.)

## Affected

- juliangruber brace-expansion: >= 4.0.0, < 5.0.10; >= 3.0.0, < 3.0.7; >= 2.0.0, < 2.1.5; < 1.1.19
- brace-expansion (npm): from 4.0.0 before 5.0.10; from 3.0.0 before 3.0.7; from 2.0.0 before 2.1.5; before 1.1.19

## 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-6j4f-fj2g-mc7p> (web)
- <https://github.com/juliangruber/brace-expansion/commit/0bcbfc0a5928c3073d48f42999d1ce4fc1c42fbc> (web)
- <https://github.com/juliangruber/brace-expansion/commit/316359e6019c39b3254c8ba8e25dc586a480652c> (web)
- <https://github.com/juliangruber/brace-expansion/commit/5171e681c0922b7ae8bfaf9a331e309107be6edc> (web)
- <https://github.com/juliangruber/brace-expansion/commit/6735c94873ca570bcdd6a0690033bdd3126379d3> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-102276> (advisory)
- <https://github.com/juliangruber/brace-expansion> (package)

## Sources

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

---

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