browserslist is vulnerable to Inefficient Regular Expression Complexity
40
Medium Risk
Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) due to an inefficient regex pattern in the last_years matcher, which allowed catastrophic backtracking. An attacker could exploit this by crafting malicious input like 'last ' + '1'.repeat(100) + ' years', causing exponential backtracking that stalls the event loop and leads to denial of service. This occurs because the original pattern ambiguously splits digits between d* and d+ when no decimal is present, creating excessive computation paths.
You are affected if you are using a version that falls within the vulnerable range.
browserslist is vulnerable to Inefficient Regular Expression Complexity in versions 4.21.0 - 4.25.2.
Upgrade the browserslist library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant