Skip to content

fix(web): override browserslist past the prototype-write advisories - #507

Merged
thedancingdeveloper merged 1 commit into
devfrom
fix/browserslist-advisories
Sep 2, 2026
Merged

fix(web): override browserslist past the prototype-write advisories#507
thedancingdeveloper merged 1 commit into
devfrom
fix/browserslist-advisories

Conversation

@thedancingdeveloper

Copy link
Copy Markdown
Contributor

pnpm audit began failing against a lockfile nobody had touched. Two high advisories landed against browserslist <=4.28.6:

Both are a prototype write / uncaught crash reachable via an untrusted browserslist-stats.json. dev's last CI run (2026-09-01 10:28) was green and its next one is red for the same reason, so this is time passing, not a change landing.

browserslist is reached only transitively — vite-plugin-solid@babel/core@babel/helper-compilation-targetsbrowserslist — so no direct dependency can be bumped to reach it. An override is the mechanism, and web/pnpm-workspace.yaml already holds two for exactly this reason.

Note the override goes in pnpm-workspace.yaml, not package.json: pnpm 11 no longer reads a pnpm.overrides field there and ignores it with a warning.

4.28.2 → 4.28.8.

Verification

  • pnpm audit — no known vulnerabilities (was: 2 high)
  • pnpm build — 132 PWA assets, exit 0
  • pnpm test — 100 files, 858 tests, all passing

Unblocks #506, which is red only on this audit step.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RzFCTnWGff1k4FyX1HQCYM

`pnpm audit` began failing against a lockfile nobody had touched: two high
advisories landed against browserslist <=4.28.6 — GHSA-c83g-rgw3-j3cx and
GHSA-73wf-gq98-2v4g, a prototype write and an uncaught crash reachable via an
untrusted `browserslist-stats.json`. `dev` was green on its last run and is
red on its next one for the same reason, so this is time, not a change.

browserslist is reached only transitively (`vite-plugin-solid` ->
`@babel/core` -> `@babel/helper-compilation-targets`), so no direct dependency
can be bumped to reach it. An override is the mechanism, and this file already
holds two of them for the same reason.

4.28.2 -> 4.28.8. `pnpm audit` reports no known vulnerabilities, the PWA
builds (132 assets) and the suite passes 858/858.
@thedancingdeveloper
thedancingdeveloper merged commit 46d5b83 into dev Sep 2, 2026
12 of 13 checks passed
@thedancingdeveloper
thedancingdeveloper deleted the fix/browserslist-advisories branch September 2, 2026 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant