Intel

AIKIDO-2025-10566

browserslist is vulnerable to Inefficient Regular Expression Complexity

Inefficient Regular Expression Complexity Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Aug 19, 2025

40

Medium Risk

This Affects:

JSbrowserslist
4.21.0 - 4.25.2
Fixed in 4.25.3
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

browserslist is vulnerable to Inefficient Regular Expression Complexity in versions 4.21.0 - 4.25.2.

How to fix this

Upgrade the browserslist library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform