Skip to content

Fix vite/esbuild security advisories (REV-37, Dependabot #14–#17) - #40

Merged
ashirman merged 1 commit into
mainfrom
fix/vite-esbuild-security-advisories
Jul 6, 2026
Merged

ashirman merged 1 commit into
mainfrom
fix/vite-esbuild-security-advisories

Conversation

@revopushbot

Copy link
Copy Markdown
Contributor

Closes REV-37.

Clears all four Dependabot alerts on the docs site, all transitive through vitepress > vite (and vite > esbuild) in pnpm-lock.yaml.

Change

A single pnpm override in package.json:

"overrides": {
  "vite": "^6.4.3"
}

Resolves vite 5.4.21 → 6.4.3 and, transitively, esbuild 0.21.5 → 0.25.12.

Why

The installed vite@5.4.21 is the final, EOL, unpatched 5.x release. The advisories' <= 6.4.2 ranges (introduced at 0) sweep in the whole 5.x line, so Dependabot / pnpm audit flag it — but the actual fixes only landed in vite 6.4.3+/7.x/8.x. vitepress@1.6.4 (latest stable) pins vite@^5.4.14, so an override is required. Vite 6.4.3 is the closest major to what vitepress expects, minimizing breakage risk, and it depends on esbuild@^0.25.0 — so bumping vite clears the esbuild advisory automatically, no separate esbuild override needed.

# Advisory Severity Patched in
#16 GHSA-fx2h-pf6j-xcff — server.fs.deny bypass on Windows alternate paths High vite ≥ 6.4.3
#15 GHSA-4w7w-66w2-5vf9 — path traversal in optimized deps .map handling Moderate vite ≥ 6.4.2
#17 GHSA-v6wh-96g9-6wx3 — launch-editor NTLMv2 hash disclosure via UNC paths Moderate vite ≥ 6.4.3
#14 GHSA-67mh-4wv8-2f99 — esbuild dev server accepts any request / reads response Moderate esbuild ≥ 0.25.0

Verification

  • pnpm audit → No known vulnerabilities found
  • pnpm build (vitepress) → build complete ✅
  • pnpm test (vitest) → 1 passed ✅

VitePress 1.6.4 builds cleanly on vite 6 despite its declared ^5 peer, so no functional regression.

🤖 Generated with Claude Code

Force vite@^6.4.3 via pnpm override to clear four Dependabot alerts
coming through vitepress > vite (and vite > esbuild). vite 5.4.21 was the
last, EOL, unpatched 5.x release; the fixes only exist in 6.4.3+.

- GHSA-fx2h-pf6j-xcff  server.fs.deny bypass on Windows (High)      vite >=6.4.3
- GHSA-4w7w-66w2-5vf9  path traversal in optimized deps .map        vite >=6.4.2
- GHSA-v6wh-96g9-6wx3  launch-editor NTLMv2 disclosure (UNC paths)  vite >=6.4.3
- GHSA-67mh-4wv8-2f99  esbuild dev-server request/read              esbuild >=0.25.0

vite 6.4.3 depends on esbuild@^0.25.0, so esbuild is bumped 0.21.5 -> 0.25.12
transitively, clearing the esbuild advisory too. Verified: pnpm audit clean,
vitepress build succeeds, vitest passes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ashirman
ashirman merged commit 49e2712 into main Jul 6, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
preview — ddd3cb3b Deployed Jul 6, 2026 by github-actions[bot]
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.

2 participants