Skip to content

chore(deps): override vite, esbuild and uuid to their patched releases - #71

Merged
kingchenc merged 1 commit into
mainfrom
chore/override-vulnerable-dev-deps
Aug 26, 2026
Merged

chore(deps): override vite, esbuild and uuid to their patched releases#71
kingchenc merged 1 commit into
mainfrom
chore/override-vulnerable-dev-deps

Conversation

@kingchenc

Copy link
Copy Markdown
Contributor

Clears all five open Dependabot alerts.

Why an override and not a bump

None of the three vulnerable packages is declared in package.json:

vitepress 1.6.4 ──> vite 5.4.21 ──> esbuild 0.21.5
vite-plugin-top-level-await 1.6.0 ──> uuid 10.0.0   (an exact pin, not a range)

vitepress@1.6.4 is the newest stable release, and it constrains vite to
^5.4.14. No version of the declared dependencies pulls a patched vite. The 2.x
line exists only as 2.0.0-alpha.19 and would pull vite ^8. So an override is
the only way to clear these without shipping an alpha of the site framework.

package now advisory
vite ^6.4.3 highserver.fs.deny bypass on Windows alternate paths; plus path traversal in optimized-deps .map handling and the launch-editor NTLMv2 hash disclosure
esbuild ^0.25.0 dev server accepts requests from any website
uuid ^11.1.1 missing buffer bounds check in v3/v5/v6 when buf is provided

All three are development scope — build tooling that never reaches the static
output Cloudflare serves. Worth doing anyway: two of the vite issues are
Windows-specific and this site is developed on Windows.

Verified, not assumed

npm run build succeeds against the overridden tree, and the output was compared
against a baseline build from the unmodified dependencies:

baseline overridden
HTML pages 16 16
dist size 5.4M 5.4M
file set identical apart from one content hash on the lightweight-charts chunk

That single differing hash is what a different minifier version is expected to
produce, not a missing or changed asset. The WASM demo bundle
(wickra_wasm_bg.*.wasm) is present in both.

npm ci --dry-run resolves the lockfile cleanly, which is what the Cloudflare
build runs — and the Cloudflare Pages check on this PR builds the site for real.

All five open Dependabot alerts on this repository resolve to three transitive
packages, and none of them can be reached by bumping what package.json declares:

  vitepress 1.6.4 ──> vite 5.4.21 ──> esbuild 0.21.5
  vite-plugin-top-level-await 1.6.0 ──> uuid 10.0.0 (an exact pin, not a range)

vitepress 1.6.4 is the newest stable release and constrains vite to ^5.4.14, so
there is no version of the declared dependencies that pulls a patched vite. The
2.x line exists only as 2.0.0-alpha.19 and would pull vite ^8. That leaves an
override as the only way to clear these without shipping an alpha.

  vite     ^6.4.3    server.fs.deny bypass on Windows alternate paths (high),
                     path traversal in optimized-deps .map handling, and the
                     launch-editor NTLMv2 hash disclosure on Windows
  esbuild  ^0.25.0   dev server accepts requests from any website
  uuid     ^11.1.1   missing buffer bounds check in v3/v5/v6 when buf is given

All three are development-scope: they are build tooling and never reach the
static output Cloudflare serves. The two Windows-specific ones do apply to the
machine this site is developed on, which is why this is worth doing rather than
dismissing.

Verified rather than assumed. `npm run build` succeeds against the overridden
tree, and its output was compared against a baseline build from the unmodified
dependencies: 16 HTML pages both times, 5.4M both times, and an identical file
set apart from one content hash on the lightweight-charts chunk, which is what a
different minifier version is expected to produce. `npm ci` resolves the
lockfile cleanly, which is what the Cloudflare build runs.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying webpage with  Cloudflare Pages  Cloudflare Pages

Latest commit: 05d637f
Status: ✅  Deploy successful!
Preview URL: https://02c0e9b4.webpage-2vc.pages.dev
Branch Preview URL: https://chore-override-vulnerable-de.webpage-2vc.pages.dev

View logs

@kingchenc
kingchenc merged commit 97aab36 into main Aug 26, 2026
4 checks passed
@kingchenc
kingchenc deleted the chore/override-vulnerable-dev-deps branch August 26, 2026 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant