# CVE-2026-13149: brace-expansion: DoS via exponential-time expansion of consecutive non-expanding {} groups

- Severity: High 7.7 (CVSS:4.0, scored by seal) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P/S:N/AU:Y/R:U/V:D/RE:M/U:Amber`
- 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.36%, higher than 32% of CVEs (2026-12-01)
- Published: 2026-06-30T08:30:34.502Z
- Modified: 2026-10-25T21:10:00.770Z
- Also known as: GHSA-3jxr-9vmj-r5cp
- Weaknesses: CWE-400, CWE-407
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: seal

## Description

brace-expansion through 5.0.6 is vulnerable to denial of service. The expand() function exhibits exponential-time complexity in the number of consecutive non-expanding '{}' brace groups. An attacker who passes a crafted string to expand(), directly or transitively, can cause significant CPU consumption and event-loop blocking. The max option does not mitigate this, as it bounds the output size rather than the recursion work.

(As written by CVE List.)

## Affected

- brace-expansion: up to 5.0.6
- brace-expansion (npm): from 3.0.0 before 5.0.7; before 1.1.16; from 2.0.0 before 2.1.2

## Every score

- seal: CVSS:4.0 7.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P/S:N/AU:Y/R:U/V:D/RE:M/U:Amber`
- GitHub: CVSS:3.1 5.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P/S:N/AU:Y/R:U/V:D/RE:M/U:Amber`

## References

- <https://github.com/juliangruber/brace-expansion/commit/c7e33ec13ac1a684c116720843ce24e208611754> (web)
- <https://www.npmjs.com/package/brace-expansion> (web)
- <https://github.com/juliangruber/brace-expansion/security/advisories/GHSA-3jxr-9vmj-r5cp> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-13149> (advisory)
- <https://github.com/juliangruber/brace-expansion/pull/122> (web)
- <https://github.com/juliangruber/brace-expansion/pull/123> (web)
- <https://github.com/juliangruber/brace-expansion/commit/835d6be91201122d9adffb0c0c8c094189ace265> (web)
- <https://github.com/juliangruber/brace-expansion/commit/d74e63030c012e3b7ae81657b8d665619cd51b95> (web)
- <https://github.com/juliangruber/brace-expansion> (package)
- <https://github.com/juliangruber/brace-expansion/releases/tag/v1.1.16> (web)
- <https://github.com/juliangruber/brace-expansion/releases/tag/v2.1.2> (web)
- <https://github.com/juliangruber/brace-expansion/releases/tag/v5.0.7> (web)

## Sources

- CVE List: [CVE-2026-13149](https://www.cve.org/CVERecord?id=CVE-2026-13149), CVE Terms of Use, modified 2026-07-08
- GitHub Advisory Database: [GHSA-3jxr-9vmj-r5cp](https://github.com/advisories/GHSA-3jxr-9vmj-r5cp), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-13149](https://nvd.nist.gov/vuln/detail/CVE-2026-13149), Public domain, modified 2026-10-25

---

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