NodeJS/braces/0.1.5


Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed.

https://www.npmjs.com/package/braces
MIT

3 Security Vulnerabilities

Duplicate Advisory: Regular Expression Denial of Service in braces

Published date: 2019-06-06T15:30:30Z
Links:

Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-cwfw-4gq5-mrqx. This link is maintained to preserve external references.

Original Description

Versions of braces prior to 2.3.1 are vulnerable to Regular Expression Denial of Service (ReDoS). Untrusted input may cause catastrophic backtracking while matching regular expressions. This can cause the application to be unresponsive leading to Denial of Service.

Recommendation

Upgrade to version 2.3.1 or higher.

Affected versions: ["2.3.0", "2.2.2", "2.2.1", "2.2.0", "2.1.1", "2.1.0", "2.0.4", "2.0.3", "2.0.2", "2.0.1", "2.0.0", "1.8.5", "1.8.4", "1.8.3", "1.8.2", "1.8.1", "1.8.0", "1.7.0", "1.6.0", "1.5.1", "1.5.0", "1.4.0", "1.3.0", "1.2.0", "1.1.0", "1.0.0", "0.1.5", "0.1.4", "0.1.2", "0.1.1", "0.1.0"]
Secure versions: []

Uncontrolled resource consumption in braces

Published date: 2024-05-14T18:30:54Z
CVE: CVE-2024-4068
Links:

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.

Affected versions: ["3.0.2", "3.0.1", "3.0.0", "2.3.2", "2.3.1", "2.3.0", "2.2.2", "2.2.1", "2.2.0", "2.1.1", "2.1.0", "2.0.4", "2.0.3", "2.0.2", "2.0.1", "2.0.0", "1.8.5", "1.8.4", "1.8.3", "1.8.2", "1.8.1", "1.8.0", "1.7.0", "1.6.0", "1.5.1", "1.5.0", "1.4.0", "1.3.0", "1.2.0", "1.1.0", "1.0.0", "0.1.5", "0.1.4", "0.1.2", "0.1.1", "0.1.0"]
Secure versions: []

braces vulnerable to stack-exhaustion denial of service through deeply nested patterns

Published date: 2026-09-18T18:31:41Z
CVE: CVE-2026-93687
Links:

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.

Affected versions: ["3.0.3", "3.0.2", "3.0.1", "3.0.0", "2.3.2", "2.3.1", "2.3.0", "2.2.2", "2.2.1", "2.2.0", "2.1.1", "2.1.0", "2.0.4", "2.0.3", "2.0.2", "2.0.1", "2.0.0", "1.8.5", "1.8.4", "1.8.3", "1.8.2", "1.8.1", "1.8.0", "1.7.0", "1.6.0", "1.5.1", "1.5.0", "1.4.0", "1.3.0", "1.2.0", "1.1.0", "1.0.0", "0.1.5", "0.1.4", "0.1.2", "0.1.1", "0.1.0"]
Secure versions: []

37 Other Versions

Version License Security Released
3.0.3 MIT 1 2024-05-21 - 08:59 over 2 years
3.0.2 MIT 2 2019-04-16 - 19:51 over 7 years
3.0.1 MIT 2 2019-04-10 - 11:30 over 7 years
3.0.0 MIT 2 2019-04-08 - 22:47 over 7 years
2.3.2 MIT 2 2018-04-08 - 14:21 over 8 years
2.3.1 MIT 2 2018-02-18 - 04:16 over 8 years
2.3.0 MIT 4 2017-10-19 - 13:37 almost 9 years
2.2.2 MIT 4 2017-05-31 - 09:56 over 9 years
2.2.1 MIT 4 2017-05-31 - 01:21 over 9 years
2.2.0 MIT 4 2017-05-28 - 23:30 over 9 years
2.1.1 MIT 3 2017-04-27 - 08:10 over 9 years
2.1.0 MIT 3 2017-04-26 - 22:39 over 9 years
2.0.4 MIT 3 2017-04-12 - 01:12 over 9 years
2.0.3 MIT 3 2016-12-11 - 01:13 almost 10 years
2.0.2 MIT 3 2016-10-21 - 06:46 almost 10 years
2.0.1 MIT 3 2016-10-20 - 21:05 almost 10 years
2.0.0 MIT 3 2016-10-20 - 01:32 almost 10 years
1.8.5 MIT 3 2016-05-21 - 15:13 over 10 years
1.8.4 MIT 3 2016-04-20 - 08:24 over 10 years
1.8.3 MIT 3 2015-12-19 - 23:03 almost 11 years
1.8.2 MIT 3 2015-10-19 - 17:46 almost 11 years
1.8.1 MIT 3 2015-08-21 - 10:17 about 11 years
1.8.0 MIT 3 2015-03-18 - 11:37 over 11 years
1.7.0 MIT 3 2015-01-31 - 00:24 over 11 years
1.6.0 MIT 3 2015-01-30 - 13:35 over 11 years
1.5.1 MIT 3 2015-01-30 - 13:27 over 11 years
1.5.0 MIT 3 2015-01-28 - 18:08 over 11 years
1.4.0 MIT 3 2015-01-25 - 00:33 over 11 years
1.3.0 MIT 3 2015-01-24 - 11:32 over 11 years
1.2.0 MIT 3 2015-01-16 - 11:55 almost 12 years
1.1.0 MIT 3 2015-01-12 - 00:45 almost 12 years
1.0.0 MIT 3 2014-12-23 - 11:35 almost 12 years
0.1.5 MIT 3 2014-11-24 - 02:08 almost 12 years
0.1.4 MIT 3 2014-11-15 - 03:24 almost 12 years
0.1.2 MIT 3 2014-10-22 - 18:51 almost 12 years
0.1.1 MIT 3 2014-10-22 - 18:19 almost 12 years
0.1.0 MIT 3 2014-10-20 - 16:26 almost 12 years