Skip to content

fix(deps): upgrade vitest to 5.0.5 and undici to 8.12.3 - #302

Merged
chaxus merged 1 commit into
mainfrom
fix/dependabot-undici-vitest
Nov 2, 2026
Merged

chaxus merged 1 commit into
mainfrom
fix/dependabot-undici-vitest

Conversation

@chaxus

@chaxus chaxus commented Nov 2, 2026

Copy link
Copy Markdown
Member

Resolves all three open Dependabot alerts. All are in development-only transitive dependencies, so nothing changes in the shipped site.

Alert Package Severity Fix
GHSA-xjj6-f33q-929c: DoS via excessive content-encodings undici (via jsdom) high override 8.10.2 → 8.12.3
GHSA-qxg6-89mg-rqv8: code injection via manual mock registration @vitest/mocker (via vitest) medium vitest ^4.1.11 → ^5.0.5
GHSA-xp26-3454-mjgp: Windows backslash traversal in the mocker allowlist @vitest/mocker (via vitest) medium same

Notes:

  • The undici entry in pnpm-workspace.yaml overrides was pinned to 8.10.2, which is below jsdom's own ^8.11.2 range. 8.12.3 is the latest release and was published 2026-10-19.
  • vitest and @vitest/coverage-v8 move to the current major, 5.0.5, published 2026-10-15. Its peers are satisfied: vite 8, jsdom 30, and Node ^22.12 || ^24 || >=26. The lockfile diff only touches the vitest tree, which drops its old istanbul/tinybench internals, and undici.

Verification

  • pnpm install --frozen-lockfile passes.
  • pnpm run test:coverage: 256 files and 7201 tests pass, coverage thresholds hold (lines 91.06%, branches 84.35%), and there are no deprecation warnings.
  • pnpm run lint:ts and pnpm run format:check pass.

🤖 Generated with Claude Code

Closes the open Dependabot alerts, all in dev-only transitive dependencies:
- undici GHSA-xjj6-f33q-929c (high, DoS via excessive content-encodings):
  the override pinned 8.10.2, below even jsdom's own ^8.11.2 range; move it
  to 8.12.3.
- @vitest/mocker GHSA-qxg6-89mg-rqv8 and GHSA-xp26-3454-mjgp (medium):
  patched in 4.1.12; take the current major, 5.0.5, with coverage-v8 to
  match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying document with  Cloudflare Pages  Cloudflare Pages

Latest commit: 767a458
Status: ✅  Deploy successful!
Preview URL: https://1e234038.document-7hm.pages.dev
Branch Preview URL: https://fix-dependabot-undici-vitest.document-7hm.pages.dev

View logs

@chaxus
chaxus enabled auto-merge (rebase) November 2, 2026 03:00
@chaxus
chaxus merged commit a108d8b into main Nov 2, 2026
19 checks passed
@chaxus
chaxus deleted the fix/dependabot-undici-vitest branch November 2, 2026 03:17
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