Browserslist
Browserslist: Uncaught crash / prototype write via untrusted browserslist-stats.json custom stats (normalizeStats)
Browserslist is a configuration tool for sharing target browsers and Node.js versions between front-end tools. Prior to 4.28.7, normalizeStats() in node.js, reached unconditionally through getStat() and loadStat() on every browserslist() call, processes untrusted browserslist-stats.json, opts.stats, and CLI --stats data with an unguarded for...in loop and plain-object bracket access and assignment, allowing inherited Object.prototype keys including __proto__, toString, valueOf, constructor, hasOwnProperty, and isPrototypeOf to cause an uncaught TypeError or modify the prototype of the returned normalized object. 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/f9…
- 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.