Skip to content

fix(deps): force esbuild >=0.28.1 (Dependabot alert #5, GHSA-gv7w-rqvm-qjhr)#63

Merged
wolpert merged 1 commit into
mainfrom
fix-esbuild-ghsa-gv7w
Jun 13, 2026
Merged

fix(deps): force esbuild >=0.28.1 (Dependabot alert #5, GHSA-gv7w-rqvm-qjhr)#63
wolpert merged 1 commit into
mainfrom
fix-esbuild-ghsa-gv7w

Conversation

@wolpert

@wolpert wolpert commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Resolves Dependabot alert #5.

The alert

  • Package: esbuild 0.27.7transitive, dev-only (pulled by tsup and vitestvite), in clients/passkeys-browser.
  • Advisory: GHSA-gv7w-rqvm-qjhr (HIGH) — missing binary integrity verification in esbuild's Deno module enables RCE via NPM_CONFIG_REGISTRY. First patched in 0.28.1.

Real-world risk here: low, but worth clearing

  • esbuild is a build-time bundler — it's never part of the published @pk-auth/passkeys-browser bundle, so SDK consumers are not exposed.
  • The advisory is specific to esbuild's Deno module; this repo uses esbuild via Node (tsup/vite), so the exploit path doesn't apply.
  • Still a HIGH advisory and a one-line fix, so we clear it (keeps the dependency-review gate and the security tab clean).

The fix

Add an npm overrides entry pinning esbuild to ^0.28.1. Both tsup and vite now resolve to 0.28.1 (verified via npm ls esbuild).

"overrides": { "esbuild": "^0.28.1" }

Verification

  • npm ls esbuild → single 0.28.1, deduped across tsup + vite.
  • tsc --noEmit clean; tsup builds ESM/CJS/DTS; 76/76 vitest tests pass.
  • npm audit → no remaining high-severity issues.

Note: npm audit still reports 2 moderate issues via typed-rest-clientqs (separate dev-tooling chain, not this alert). Happy to address those in a follow-up if you want.

🤖 Generated with Claude Code

…IGH)

Dependabot alert #5: esbuild 0.27.7 (transitive dev dep via tsup and
vitest->vite) is vulnerable to GHSA-gv7w-rqvm-qjhr — missing binary integrity
verification in the Deno module enables RCE via NPM_CONFIG_REGISTRY (patched in
0.28.1). The actual exploit path doesn't apply here (esbuild is used via Node,
not Deno, and is build-only — never shipped in the published bundle), but it's
a HIGH advisory and trivially fixable.

Add an npm override pinning esbuild to ^0.28.1; both tsup and vite now resolve
to 0.28.1. Build (tsup ESM/CJS/DTS), typecheck, and the full vitest suite
(76 tests) all pass on the bumped version. npm audit reports no remaining
high-severity issues.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@wolpert
wolpert enabled auto-merge (rebase) June 13, 2026 14:42
@sonarqubecloud

Copy link
Copy Markdown

@wolpert
wolpert merged commit deb063c into main Jun 13, 2026
5 checks passed
@wolpert
wolpert deleted the fix-esbuild-ghsa-gv7w branch June 13, 2026 14:46
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