HIGH7.5
GHSA-vfj7-8cjw-p6xm
braces vulnerable to stack-exhaustion denial of service through deeply nested patterns
Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
npm/braces
Introduced in:
0No fixed version published yet for braces (npm). Pin to a known-safe version or switch to an alternative.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-93687[ADVISORY]
- https://github.com/micromatch/braces/issues/70[WEB]
- https://github.com/micromatch/braces[PACKAGE]
- https://github.com/micromatch/braces/blob/3.0.3/lib/compile.js#L49-L53[WEB]
- https://github.com/micromatch/braces/blob/3.0.3/lib/expand.js#L102-L105[WEB]
- https://github.com/micromatch/braces/blob/3.0.3/lib/parse.js#L38-L40[WEB]
- https://www.vulncheck.com/advisories/braces-through-3.0.3-stack-overflow-via-deeply-nested-patterns[WEB]