braces is a Bash-like brace expansion, implemented in JavaScript.
Affected versions of this package are vulnerable to Uncontrolled resource consumption due improper limitation of the number of characters it can handle, through the parse function. An attacker can cause the application to allocate excessive memory and potentially crash by sending imbalanced braces as input.
Detailed paths
Overview
braces is a Bash-like brace expansion, implemented in JavaScript.
Affected versions of this package are vulnerable to Uncontrolled resource consumption due improper limitation of the number of characters it can handle, through the
parse
function. An attacker can cause the application to allocate excessive memory and potentially crash by sending imbalanced braces as input.PoC
Remediation
Upgrade
braces
to version 3.0.3 or higher.References
SNYK-JS-BRACES-6838727
(CVE-2024-4068) braces@2.3.2