Browserslist: Unbounded memory growth (no cache eviction) via distinct query results, leading to eventual OOM
browserslist
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| browserslist npm |
|
|
Original description
Browserslist is a configuration tool for sharing target browsers and Node.js versions between front-end tools. Prior to 4.28.7, index.js retains every distinct `(queries, context)` result in cache and every parseQueries() AST in parseCache without a size cap, TTL, or eviction, allowing an attacker who can influence repeated browserslist() query values, including valid since `<year>-<month>-<day>` queries, to bypass the caller-controlled BROWSERSLIST_DISABLE_CACHE mitigation and cause linear memory growth followed by an out-of-memory process crash. This issue is fixed in version 4.28.7.
From the CVE record · GitHub_M