Skip to content

πŸ“¦ deps(security): pin esbuild to 0.28.1 (GHSA-g7r4-m6w7-qqqr, GHSA-gv7w-rqvm-qjhr)#431

Merged
scttbnsn merged 1 commit into
mainfrom
deps/bump-esbuild
Jun 13, 2026
Merged

πŸ“¦ deps(security): pin esbuild to 0.28.1 (GHSA-g7r4-m6w7-qqqr, GHSA-gv7w-rqvm-qjhr)#431
scttbnsn merged 1 commit into
mainfrom
deps/bump-esbuild

Conversation

@scttbnsn

Copy link
Copy Markdown
Contributor

Summary

Resolves two esbuild security advisories flagged by osv-scanner in apps/demo and apps/web:

Both are first patched in esbuild 0.28.1. esbuild is pulled in transitively β€” vite@^7.3.1 (apps/demo) and fumadocs-mdx (apps/web) β€” and both cap it at <0.28.0, so a normal dependency bump can't reach the fix. This pins it via an npm overrides entry in each app (the same mechanism both apps already use for postcss/yaml).

Risk

Low. The vulnerable surface (esbuild's dev server and Deno module) is not exercised by drydock's build pipeline β€” esbuild is used only as vite/fumadocs' build-time transformer. The override forces 0.28.1 above vite's declared ^0.27.0 range; the πŸ—οΈ Build check verifies vite/Next still build cleanly in full monorepo context.

Verification

qlty check --all  β†’  βœ” No issues   (was: 4 esbuild advisories)
npm ls esbuild    β†’  esbuild@0.28.1 overridden   (both apps)

Diff is surgical: only the two package.json overrides + the esbuild/@esbuild/* version lines in each lockfile (0.27.4 β†’ 0.28.1). No other dependencies changed.

🎯 Target: main · follow-up to the qlty finding surfaced while opening #429

Forces esbuild >=0.28.1 via npm overrides to resolve GHSA-g7r4-m6w7-qqqr
(dev-server path traversal, Windows) and GHSA-gv7w-rqvm-qjhr (Deno module
RCE), both first patched in 0.28.1. esbuild is transitive via vite
(apps/demo) and fumadocs-mdx (apps/web); both cap it at <0.28.0, so an
override is the only way to reach the fix. The vulnerable surface
(esbuild dev server / Deno module) is not exercised by drydock's build.
@vercel

vercel Bot commented Jun 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
drydock-website Error Error Jun 13, 2026 2:22am
drydockdemo-website Ready Ready Preview, Comment Jun 13, 2026 2:22am

@biggest-littlest biggest-littlest left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified: esbuild pinned to 0.28.1 via npm overrides (patches GHSA-g7r4-m6w7-qqqr, GHSA-gv7w-rqvm-qjhr). qlty security gate passes; πŸ—οΈ Build green with the forced bump; lockfile diff is esbuild-scoped only.

@ALARGECOMPANY ALARGECOMPANY left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed esbuild override resolves both advisories with no collateral lockfile changes; CI Lint/Test/Build all green. Approving.

@scttbnsn scttbnsn merged commit 2e3f3fd into main Jun 13, 2026
20 of 21 checks passed
@scttbnsn scttbnsn deleted the deps/bump-esbuild branch June 13, 2026 03:24
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.

3 participants