Repository navigation
chore(security): resolve pnpm audit vulnerabilities (2 moderate) - #590
Merged
Merged
Conversation
pnpm audit reports two advisories in @vitest/mocker 4.1.11, a dev-only dependency that comes in through the root devDependency vitest. Both are fixed in @vitest/mocker 4.1.12, the version vitest 4.1.12 pins exactly. - GHSA-qxg6-89mg-rqv8 (moderate): code injection via unauthenticated manual mock registration. Affects >=2.1.0-beta.7 <4.1.12. - GHSA-xp26-3454-mjgp (moderate): a Windows backslash traversal that bypasses the redirect allowlist fix for GHSA-82fw-gwwq-j7x9, which #515 shipped as 4.1.11. Affects >=4.1.11 <4.1.12. vitest is declared directly, so bump it in place rather than adding an @vitest/mocker override, as #387 and #515 did. Move vitest and @vitest/coverage-v8 4.1.11 -> 4.1.12 together, in devDependencies and in their exact pnpm.overrides entries: coverage-v8 4.1.12 peers on vitest 4.1.12 exactly. A standalone mocker override would leave vitest 4.1.11 pinning @vitest/spy 4.1.11 next to mocker's @vitest/spy 4.1.12. 4.1.12 is the newest 4.x release, published 2026-10-15, past renovate.json's 24h minimumReleaseAge. The lockfile moves only the vitest family (vitest and nine @vitest/* packages) and the @inquirer/testing snapshot that peers on vitest. Regenerating it also added libc/deprecated registry metadata to 50 package entries whose versions did not change; those lines were removed so the diff holds only real changes, as in #588. pnpm install --lockfile-only is a no-op on the result. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xojah1Cd55qFBFkBRZQAcy
Contributor
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #590 +/- ##
========================================
Coverage 90.49% 90.49%
========================================
Files 217 217
Lines 12655 12655
Branches 3652 3545 -107
========================================
Hits 11452 11452
Misses 1200 1200
Partials 3 3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
tkislan
marked this pull request as ready for review
October 22, 2026 08:39
dinohamzic
approved these changes
Oct 22, 2026
This was referenced Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pnpm auditreports two advisories, both in@vitest/mocker4.1.11. It is a dev-only dependency that comes in through the root devDependencyvitest. Both are fixed in@vitest/mocker4.1.12, whichvitest4.1.12 pins exactly.vitest > @vitest/mockervitest > @vitest/mocker"devDependencies": { - "@vitest/coverage-v8": "4.1.11", + "@vitest/coverage-v8": "4.1.12", ... - "vitest": "4.1.11" + "vitest": "4.1.12" }, ... "pnpm": { "overrides": { - "@vitest/coverage-v8": "4.1.11", + "@vitest/coverage-v8": "4.1.12", ... - "vitest": "4.1.11", + "vitest": "4.1.12",Direct dependency bump, not an override
vitestis a root devDependency, so it is bumped in place, as chore(security): resolve pnpm audit vulnerabilities (1 critical, 3 moderate) #387 and fix: remediate dependency audit vulnerabilities #515 did for earlier vitest advisories. A lockfile-only refresh can't help:vitest4.1.11 pins@vitest/mocker4.1.11 exactly.@vitest/mockeroverride was rejected.vitest4.1.11 would keep pinning@vitest/spy4.1.11, while@vitest/mocker4.1.12 needs@vitest/spy4.1.12, so two copies would be installed. fix: remediate dependency audit vulnerabilities #515 skipped a standalone mocker override for the same reason.vitestand@vitest/coverage-v8move together, indevDependenciesand in their exactpnpm.overridesentries, as in fix: remediate dependency audit vulnerabilities #515.@vitest/coverage-v84.1.12 peers onvitest4.1.12 exactly.Target version 4.1.12
vitest,@vitest/coverage-v8and@vitest/mocker4.1.12 were published 2026-10-15, past the 24-hourminimumReleaseAgeinrenovate.json. The lockfile was resolved with--config.minimum-release-age=1440.vitest4.1.12 still acceptsvite ^6 || ^7 || ^8, so the locked vite 8.3.4 from chore(security): resolve pnpm audit vulnerabilities (1 high, 3 moderate) #588 is unchanged.Exposure
Neither advisory can be reached in this repo. Both live in
interceptorPluginfrom@vitest/mocker/node, which handles thevitest:interceptor:registerdev-server WebSocket event. In node mode, vitest imports onlyhoistMocksPluginandautomockPluginfrom that module. Neithervitest.config.tsnorvitest.integration.config.tsenables browser mode, UI or--api. GHSA-xp26 is also Windows-only, and CI runs vitest onubuntu-latestonly.Lockfile
vitestand nine@vitest/*packages, 4.1.11 → 4.1.12, plus the@inquirer/testingsnapshot that peers onvitest. No third-party package changes.libc:anddeprecated:registry metadata to 50 package entries whose versions did not change (@yuku-*bindings and others). Those lines were removed so the diff holds only real changes, as in chore(security): resolve pnpm audit vulnerabilities (1 high, 3 moderate) #588. Runningpnpm install --lockfile-onlyon the result changes nothing.Verification
pnpm auditandpnpm audit --prod: no known vulnerabilitiespnpm install --frozen-lockfile: passes, andpnpm install --lockfile-onlyleaves the lockfile unchangednpm view <pkg>@4.1.12 dist.integritypnpm build,pnpm typecheck,pnpm lintAndFormat,pnpm spell-check: passpnpm test: 190 files, 3595 tests pass on vitest 4.1.12. Run locally with apython→python3shim on PATH, which thecli/run.test.tscases need in this workspace.🤖 Generated with Claude Code
https://claude.ai/code/session_01Xojah1Cd55qFBFkBRZQAcy
Summary by CodeRabbit