Vulnerability GHSA-grv7-fg5c-xmjg
High Risk
HIGH RISK
CVSS Score: 7.5
Score Range: 7.0–8.9
High severity vulnerabilities (CVSS 7.0–8.9). Serious vulnerabilities that should be prioritized soon after critical fixes.
2 years ago
May 14, 2024 at 06:30 PM UTC
Uncontrolled resource consumption in braces
0.1.0 - 3.0.2
0.1.0 - 3.0.2
Summary
Uncontrolled resource consumption in braces
Details
The NPM package braces fails to limit the number of characters it can handle, which could lead to Memory Exhaustion. In lib/parse.js, if a malicious user sends "imbalanced braces" as input, the parsing will enter a loop, which will cause the program to start allocating heap memory without freeing it at any moment of the loop. Eventually, the JavaScript heap limit is reached, and the program will crash.
Related Vulnerabilities
Other vulnerabilities affecting the same packages
High Risk
14 days ago
braces vulnerable to stack-exhaustion denial of service through deeply nested patterns
0.1.0 - 3.0.3 GHSA-vfj7-8cjw-p6xm
0.1.0 - 3.0.3 GHSA-vfj7-8cjw-p6xm
Low Risk
4 years ago
Regular Expression Denial of Service (ReDoS) in braces
2.2.0 - 2.3.0 GHSA-cwfw-4gq5-mrqx
2.2.0 - 2.3.0 GHSA-cwfw-4gq5-mrqx
Impacted packages
Timeline
Published
2 years ago
May 14, 2024 at 06:30 PM UTC
Fixed (3.0.3)
2 years ago
May 21, 2024 at 08:59 AM UTC
Last Modified
22 days ago
September 10, 2026 at 03:50 AM UTC