Skip to content

fix(security): override esbuild to ^0.28.1 (Dependabot #6, RCE)#17

Merged
isingh merged 1 commit into
mainfrom
fix/esbuild-rce-override
Jun 14, 2026
Merged

fix(security): override esbuild to ^0.28.1 (Dependabot #6, RCE)#17
isingh merged 1 commit into
mainfrom
fix/esbuild-rce-override

Conversation

@isingh

@isingh isingh commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

What

Adds a pnpm.overrides entry forcing esbuild ^0.28.1, resolving Dependabot alert #6 (esbuild missing binary integrity verification in the Deno module → RCE via NPM_CONFIG_REGISTRY, CVSS 8.1). Lockfile now resolves esbuild 0.28.1 everywhere (was 0.28.0).

Why an override

esbuild is a transitive dep (tsx / vite / vitest) and Dependabot couldn't bump it — the parents pin 0.28.0. The parents' ranges allow ^0.28.0, which 0.28.1 satisfies, so a pnpm override is the clean fix.

Risk context (why this is lower-severity for truecast than the 8.1 suggests)

  • esbuild is dev-only (not in dependencies) and not in the published package (only dist/ ships) — no consumer of @wastedcode/truecast ever receives it.
  • The vulnerable code path is esbuild's Deno module; truecast is a Node project and never invokes it (the Node install path already does integrity checks).
  • Exploit also requires an attacker-controlled NPM_CONFIG_REGISTRY.

Still worth taking: clears the High alert and hardens the build/CI path.

Test plan

  • pnpm install --frozen-lockfile clean; esbuild 0.28.1 everywhere
  • pnpm typecheck / pnpm test (159 passing) / pnpm lint / pnpm build all green
  • truecast publish --check clean

🤖 Generated with Claude Code

esbuild < 0.28.1 ships a Deno module that downloads native binaries without
integrity verification, enabling RCE via a hostile NPM_CONFIG_REGISTRY
(GHSA / CVSS 8.1). esbuild is a dev-only transitive dep here (tsx/vite/vitest)
and is not in the published package (only dist/ ships), and truecast is a Node
project that never exercises the vulnerable Deno path — so practical exposure is
low — but this clears the alert and hardens the build/CI path.

Dependabot couldn't bump it (transitive, pinned by parents), so force it with a
pnpm override; parents allow ^0.28.0, which 0.28.1 satisfies. Lockfile resolves
esbuild 0.28.1 everywhere. Full suite green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@isingh isingh merged commit f79db0a into main Jun 14, 2026
6 checks passed
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