CVE-2021-23364: Regular Expression Denial of Service in browserslist
5.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.56328%
CWE
Published
5/24/2021
Updated
8/17/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
browserslist | npm | >= 4.0.0, < 4.16.5 | 4.16.5 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from regex patterns that allowed ambiguous digit matching. The fix in commit c091916 split these into specific alternatives (\d+|\d*.\d+), indicating the original patterns in version range comparisons and date parsing were vulnerable. The QUERIES array entries for 'since', 'cover', and version comparisons contained the problematic regexes that could be exploited via specially crafted queries to trigger ReDoS.