Skip to content

fix(deps): override esbuild ^0.28.1 to clear OSV advisories#78

Merged
nocoo merged 1 commit into
mainfrom
agent/sde-01/a77dd83c
Jun 12, 2026
Merged

fix(deps): override esbuild ^0.28.1 to clear OSV advisories#78
nocoo merged 1 commit into
mainfrom
agent/sde-01/a77dd83c

Conversation

@nocoo

@nocoo nocoo commented Jun 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • Pin esbuild to ^0.28.1 via root package.json overrides. drizzle-kit 0.31.10 still requires ^0.25.4 and tsx 4.21.0 requires ~0.27.0, both of which resolved to vulnerable releases (0.25.12 / 0.27.7). Neither upstream has shipped a fix yet, so an override is the smallest unblock and gets every transitive resolution onto 0.28.1.
  • Drops the now-unreachable GHSA-67mh-4wv8-2f99 ignore — the override also clears the @esbuild-kit/core-utils pull-through that the previous ignore was working around, so osv-scanner.toml is empty.

Advisories cleared

Advisory Severity Where Fix
GHSA-gv7w-rqvm-qjhr High (8.1) drizzle-kit → esbuild@0.25.12, tsx → esbuild@0.27.7 esbuild ≥ 0.28.1
GHSA-g7r4-m6w7-qqqr Low (2.5) tsx → esbuild@0.27.7 esbuild ≥ 0.28.1
GHSA-67mh-4wv8-2f99 n/a @esbuild-kit/core-utils → esbuild@0.18.20 (previously ignored) esbuild ≥ 0.28.1 (now covered by override, ignore removed)

This unblocks PR #77 (quality / L1+G1+G2 was failing on these advisories) and restores green on main.

Test plan

  • bun install → 800 packages, no resolution conflicts
  • bun pm ls --all | grep esbuild → every esbuild copy is now 0.28.1
  • bun run lint clean
  • bun run typecheck clean
  • bun run test → 945 passing (71 files)
  • bun run build succeeds
  • osv-scanner scan source --lockfile=bun.lock → no issues found
  • drizzle-kit generate --help loads (sanity check that the bumped esbuild still satisfies drizzle-kit's runtime use of the API)

drizzle-kit 0.31.10 and tsx 4.21.0 still pull in vulnerable esbuild
0.25.12/0.27.7 transitively, triggering GHSA-gv7w-rqvm-qjhr (High,
Deno RCE) and GHSA-g7r4-m6w7-qqqr (Low, Windows path traversal) on
OSV scans. Neither upstream has shipped a fixed release yet.

Pin esbuild to ^0.28.1 via bun overrides so every transitive
resolution lands on the patched version. With that pin the previous
ignore for GHSA-67mh-4wv8-2f99 (@esbuild-kit/core-utils) is no longer
reachable, so osv-scanner.toml is emptied.

Verified: bun run lint, typecheck, test (945 passing), build, and
osv-scanner --lockfile=bun.lock (no issues found).
@nocoo nocoo merged commit fef9074 into main Jun 12, 2026
4 checks passed
@nocoo nocoo deleted the agent/sde-01/a77dd83c branch June 12, 2026 22:50
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