Skip to content

fix: patch the vite advisory in the test tooling - #88

Merged
cardmagic merged 1 commit into
mainfrom
chore/vite-advisory
Oct 22, 2026
Merged

cardmagic merged 1 commit into
mainfrom
chore/vite-advisory

Conversation

@cardmagic

Copy link
Copy Markdown
Owner

Summary

  • pnpm audit --audit-level=high fails on main (CI run 39802922572, job "quality") since a high advisory appeared for vite 8.2.0 through 8.2.3: GHSA-587h-7wmj-h5pm, a launch-editor existence check that can be bypassed on Windows.
  • vite reaches this repository only as test tooling: @cloudflare/vitest-plugin > vitest > @vitest/mocker > vite. The published package has no runtime dependencies, so users are not affected.
  • Vitest 4 lists vite as a peer, so pnpm kept 8.2.1 even with an override in pnpm-workspace.yaml. vite is now a direct development dependency, ^8.3.4, locked at 8.3.4: the newest patched release that is at least 10 days old (published 2026-10-08). 8.3.5 is one day old.

Note

pnpm config get minimumReleaseAge returns undefined with pnpm 11.11: pnpm no longer reads the minimumReleaseAge = 10 days line in .npmrc. Without care, a plain pnpm add would have taken vite 8.3.5. That fix is not in this pull request.

Checks

  • pnpm audit --audit-level=high passes (2 moderate advisories remain, below the CI threshold).
  • pnpm run check, pnpm test (709 passed), pnpm run test:cloudflare (61 passed after a build), check:cloudflare, pack:check, and test:package pass. pnpm peers check reports no issues.

pnpm audit --audit-level=high now fails on main. A high advisory
(GHSA-587h-7wmj-h5pm) appeared for vite 8.2.0 through 8.2.3: a
launch-editor existence check can be bypassed on Windows. vite reaches
this repository only through Vitest and the Cloudflare Vitest plugin.
The published package has no runtime dependencies.

Vitest 4 lists vite as a peer, so pnpm kept the old 8.2.1 even with an
override. vite is now a direct development dependency at 8.3.4, the
newest patched release that is at least 10 days old. pnpm audit at the
high level passes, and pnpm test, test:cloudflare, check:cloudflare,
pack:check, and test:package pass.
@greptile-apps

greptile-apps Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable issues were found.

Summary

Adds vite as a direct development dependency and locks it at 8.3.4 to address the reported advisory.

  • The repository’s test tools now use Vite 8.3.4.

Reviews (1) · Last reviewed commit: "fix: patch the vite advisory in the test..." · Reviewed by Greptile

@cardmagic
cardmagic merged commit 2cb600f into main Oct 22, 2026
20 checks passed
cardmagic added a commit that referenced this pull request Oct 22, 2026
The vite advisory fix (#88) ran pnpm add while pnpm ignored the release
age, so the lockfile took rolldown 1.2.15, postcss 8.5.31, and
@oxc-project/types 0.155.0, published one to three days earlier. With
the release age on, a frozen install rejects these 18 entries.

The lockfile now starts again from the one before #88 and resolves
vite ^8.3.4 under the release age: vite 8.3.4, rolldown 1.2.13, and
postcss 8.5.29. A frozen install, pnpm audit at the high level, pnpm
test, and test:cloudflare pass.
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