Description
braces through 3.0.3 contains a stack overflow vulnerability in the recursive AST walkers that lack depth guards. Attackers can supply deeply nested brace patterns under the character limit to exhaust the call stack and terminate the Node.js process with an uncaught RangeError.
Severity (CVSS)
| Base score | 8.7 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | 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 |
| Provided by | CNA |
Weaknesses
- CWE-674 — Uncontrolled Recursion
Affected products
| Vendor | Product | Versions |
|---|---|---|
| micromatch | braces | 0 to <=3.0.3 |
References
- https://github.com/micromatch/braces/issues/70 (issue-tracking)
- https://github.com/micromatch/braces (product)
- https://github.com/micromatch/braces/blob/3.0.3/lib/compile.js#L49-L53 (technical-description)
- https://github.com/micromatch/braces/blob/3.0.3/lib/expand.js#L102-L105 (technical-description)
- https://github.com/micromatch/braces/blob/3.0.3/lib/parse.js#L38-L40 (technical-description)
- https://www.vulncheck.com/advisories/braces-through-3.0.3-stack-overflow-via-deeply-nested-patterns (third-party-advisory)
Generated from the official CVE List on 19 Sep 2026 07:08 UTC.