CVE-2026-13149
HIGH 7.7CVSS 4.0brace-expansion: DoS via exponential-time expansion of consecutive non-expanding {} groups
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.
- Published
- 30 Jun 2026
- Last modified
- 25 Oct 2026
- Assigned by
- 22e2d327-25fe-45d7-9f0c-dcd23b7108df
- NVD status
- Deferred
- Weakness
- CWE-400CWE-407
- Also known as
- GHSA-3jxr-9vmj-r5cp
- Sources
- NVDJSONOSV GHSA-3jxr-9vmj-r5cpJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 22e2d327-25fe-45d7-9f0c-dcd23b7108df (Secondary) | CVSS 4.0 | HIGH 7.7 | 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:N/AU:Y/R:U/V:D/RE:M/U:Amber |
| OSV | GitHub | CVSS 4.0 | 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 | |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | brace-expansion | >= 3.0.0, < 5.0.7 | 5.0.7 |
| OSV | npm | brace-expansion | < 1.1.16 | 1.1.16 |
| OSV | npm | brace-expansion | >= 2.0.0, < 2.1.2 | 2.1.2 |
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
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 30 Jun 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 20 Jul 2026)