Browserslist
Browserslist: Unbounded memory growth (no cache eviction) via distinct query results, leading to eventual OOM
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 4.28.7
Fixed in 4.28.7
Mitigation
Upgrade browserslist to 4.28.7 or later.
References
- Vendor advisory github.com/browserslist/browserslist/security/…
- Patch github.com/browserslist/browserslist/commit/f2…
- Release notes github.com/browserslist/browserslist/releases/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.