Inefficient regular expression complexity in brace-expansion - CVE-2026-25547

 

Inefficient regular expression complexity in brace-expansion - CVE-2026-25547

Published: April 6, 2026


Vulnerability identifier: #VU124876
CSH Severity: Low
CVSS v4.0: 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/E:U/U:Clear
CVE-ID: CVE-2026-25547
CWE-ID: CWE-1333
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Julian Gruber
Affected software:
brace-expansion

Detailed vulnerability description

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to insufficient input validation when processing untrusted input with a regular expressions. When a remote attacker provides a pattern containing repeated numeric brace ranges, the library attempts to eagerly generate every possible combination synchronously. Because the expansion grows exponentially, even a small input can consume excessive CPU and memory and may crash the Node.js process.


How to mitigate CVE-2026-25547

Install updates from vendor's website.

Sources