Affected versions
- Affected versions
- Unknown
- Fixed version
- Not reported
Exploitation
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.
A flaw was found in braces. This stack overflow vulnerability exists in the recursive Abstract Syntax Tree (AST) walkers due to a lack of depth guards. A remote attacker can exploit this by supplying deeply nested brace patterns, leading to the exhaustion of the call stack and termination of the Node.js process, resulting in a Denial of Service (DoS).

