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.
https://github.com/BernydotJar/braces-security-backport
https://www.vulncheck.com/advisories/braces-through-3.0.3-stack-overflow-via-deeply-nested-patterns
https://github.com/micromatch/braces/issues/73#issuecomment-5996574974
https://github.com/micromatch/braces/issues/70
https://github.com/micromatch/braces/blob/3.0.3/lib/parse.js#L38-L40
https://github.com/micromatch/braces/blob/3.0.3/lib/expand.js#L102-L105
https://github.com/micromatch/braces/blob/3.0.3/lib/compile.js#L49-L53
Published: 2026-09-18
Updated: 2026-10-12
Named Vulnerability: GHSA-vfj7-8cjw-p6xm
Base Score: 7.8
Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C
Severity: High
Base Score: 7.5
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Severity: High
Base Score: 8.7
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
Severity: High
EPSS: 0.00757