chore(deps): update dependency browserslist to v4.28.7 [security] - #134
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update dependency browserslist to v4.28.7 [security]#134renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Contributor
Author
Branch automerge failureThis PR was configured for branch automerge. However, this is not possible, so it has been raised as a PR instead.
|
Contributor
📊 Package size report No changes
Unchanged files
🤖 This report was automatically generated by pkg-size-action |
renovate
Bot
force-pushed
the
renovate/npm-browserslist-vulnerability
branch
from
September 3, 2026 23:45
f36443b to
ca26111
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This PR contains the following updates:
4.22.2→4.28.7Browserslist: Uncaught crash / prototype write via untrusted browserslist-stats.json custom stats (normalizeStats)
CVE-2026-73088 / GHSA-73wf-gq98-2v4g
More information
Details
Vulnerability Details
File:
node.jsFunction:
normalizeStats()(line ~214), reached fromgetStat()(calledunconditionally on every
browserslist()call) andloadStat()Root Cause
statsis untrusted: it comes fromJSON.parse()-ing abrowserslist-stats.jsonfile — auto-discovered by walking up the directorytree from the project root on every
browserslist()call, regardless ofthe query (
env.getStat(opts, browserslist.data)runs unconditionallyinside
browserslist()) — or fromopts.statspassed programmatically /via the CLI's
--stats=flag.dataisbrowserslist.data, a plain objectpopulated only with real browser names.
Two independent bugs from the same root cause (unguarded
for...inoveruntrusted keys used with plain-object bracket access/assignment):
data[i]has nohasOwnPropertyguard. Ifstatscontains akey that also happens to be an inherited
Object.prototypemember name —"__proto__","toString","valueOf","constructor","hasOwnProperty","isPrototypeOf", etc. —data[i]resolves to thatinherited function/object (always truthy), and the code then does
data[i].versions.length→undefined.length→ uncaughtTypeError,for any such key whose JSON value has exactly one sub-key, e.g.:
{ "toString": { "onekey": 5 }, "chrome": { "100": 50 } }normalized[i] = ...on the freshnormalized = {}— ifiis exactly"__proto__"(andnormalizedhasno own property by that name yet), this computed assignment invokes the
real
Object.prototype.__proto__setter, changingnormalized's actual[[Prototype]]instead of creating a plain property.Because this runs on every
browserslist()call regardless of thequery, simply committing a poisoned
browserslist-stats.jsonanywhere in aproject's directory tree breaks every subsequent Browserslist call in that
project — including calls made by Autoprefixer, Babel
preset-env,Stylelint, or PostCSS internally, for completely unrelated queries.
Attack Scenario
browserslist-stats.jsonfile anywhere between the project root andfilesystem root, containing e.g.
{"toString": {"onekey": 5}, "chrome": {"100": 50}}.browserslist()internally, for any query.
TypeErroron the very first call.Measured Impact
Confirmed crash (real
browserslist()call, v4.28.6) withstatskeys:__proto__,toString,valueOf,hasOwnProperty,constructor,isPrototypeOf— each paired with a one-key JSON object — for any query,including
browserslist('defaults')which never mentions stats.Recommended Fix (implemented and verified)
normalizedusesObject.create(null)so a write to"__proto__"is anordinary property set, never a
[[Prototype]]change;data[i]is replacedwith an explicit
hasOwnPropertycheck so it never resolves to an inheritedObject.prototypemember.Verification:
NODE_ENV=test npx uvu test .test.js→ 301/301 pass unmodified(
test/custom.test.js,test/shareable-stats.test.js,test/cover.test.jsexercise the stats-handling paths).
without error.
browserslist-stats.json+ an unrelatedbrowserslist('defaults')call)now returns a normal result instead of crashing.
Impact
(directly or via Autoprefixer/Babel/Stylelint/PostCSS) in a directory tree
an attacker can place a file into (external PR, compromised dependency),
or any app that passes user-influenced data into
opts.stats.process on the first Browserslist call after the file is present, for any
query, no special syntax needed.
file to the project's directory tree, or influence
opts.stats.Verification Environment
browserslist @ HEAD (== v4.28.6, current latest stable release) under local
Node.js v20.19.5. Pure JS library — executed directly, no server needed.
Note
Found via a systematic review of prototype-pollution-adjacent patterns in
this codebase after confirming two unrelated algorithmic-complexity issues
(reported separately as GHSA-rrmg-cfrq-23vv and GHSA-g6p8-hj8g-x889) in the
same research pass. A similar
for...in+ bracket-write pattern inindex.js'scopyObject()(used bynormalizeAndroidData) was alreadyguarded against
__proto__/constructor/prototypekeys by a prior,unrelated commit — that guard was never applied to this function.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
browserslist/browserslist (browserslist)
v4.28.7Compare Source
v4.28.6Compare Source
v4.28.5Compare Source
>and>=queries (by @spokodev).v4.28.4Compare Source
SyntaxErrorregression of 4.28.3.v4.28.3Compare Source
v4.28.2Compare Source
v4.28.1Compare Source
v4.28.0Compare Source
v4.27.0Compare Source
BROWSERSLIST_TRACE_WARNINGenvironment variable.v4.26.3Compare Source
throwOnMissingwithextendsquery (by @alexander-akait).v4.26.2Compare Source
baseline-browser-mappingversion requirement.v4.26.1Compare Source
v4.26.0Compare Source
v4.25.4Compare Source
v4.25.3Compare Source
v4.25.2Compare Source
--permissionsupport (by @broofa).v4.25.1Compare Source
v4.25.0Compare Source
cover 95% in browserslist-config-mycompany statsquery support.v4.24.5Compare Source
v4.24.4Compare Source
v4.24.3Compare Source
v4.24.2Compare Source
caniuse-litewarning text.v4.24.1Compare Source
caniuse-liteupdate to the warning (by @mezhnin).v4.24.0Compare Source
browserslist.findConfigFile()helper (by @JLHwung).v4.23.3Compare Source
>=query forios(by @syi0808).v4.23.2Compare Source
v4.23.1Compare Source
v4.23.0Compare Source
BROWSERSLIST_ROOT_PATH(by @teleclimber).v4.22.3Compare Source
supportsquery (@g-plane).@company/package/browserslist-config(@boucodes).Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.