Skip to content

chore(security): resolve pnpm audit vulnerabilities (2 moderate) - #590

Merged
tkislan merged 1 commit into
mainfrom
chore/pnpm-audit-2026-10-22
Oct 22, 2026
Merged

tkislan merged 1 commit into
mainfrom
chore/pnpm-audit-2026-10-22

Conversation

@tkislan

@tkislan tkislan commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

pnpm audit reports two advisories, both in @vitest/mocker 4.1.11. It is a dev-only dependency that comes in through the root devDependency vitest. Both are fixed in @vitest/mocker 4.1.12, which vitest 4.1.12 pins exactly.

Advisory Package Severity Path Fixed in
GHSA-qxg6-89mg-rqv8 @vitest/mocker 4.1.11 moderate dev: vitest > @vitest/mocker 4.1.12 (5.x: 5.0.3)
GHSA-xp26-3454-mjgp @vitest/mocker 4.1.11 moderate dev: vitest > @vitest/mocker 4.1.12 (5.x: 5.0.3)
   "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

Target version 4.1.12

Exposure

Neither advisory can be reached in this repo. Both live in interceptorPlugin from @vitest/mocker/node, which handles the vitest:interceptor:register dev-server WebSocket event. In node mode, vitest imports only hoistMocksPlugin and automockPlugin from that module. Neither vitest.config.ts nor vitest.integration.config.ts enables browser mode, UI or --api. GHSA-xp26 is also Windows-only, and CI runs vitest on ubuntu-latest only.

Lockfile

  • Only the vitest family moves: vitest and nine @vitest/* packages, 4.1.11 → 4.1.12, plus the @inquirer/testing snapshot that peers on vitest. No third-party package changes.
  • Regenerating the lockfile also added libc: and deprecated: 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. Running pnpm install --lockfile-only on the result changes nothing.

Verification

  • pnpm audit and pnpm audit --prod: no known vulnerabilities
  • pnpm install --frozen-lockfile: passes, and pnpm install --lockfile-only leaves the lockfile unchanged
  • The integrity hashes of all nine updated packages match npm view <pkg>@4.1.12 dist.integrity
  • pnpm build, pnpm typecheck, pnpm lintAndFormat, pnpm spell-check: pass
  • pnpm test: 190 files, 3595 tests pass on vitest 4.1.12. Run locally with a python → python3 shim on PATH, which the cli/run.test.ts cases need in this workspace.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xojah1Cd55qFBFkBRZQAcy

Summary by CodeRabbit

  • Chores
    • Updated the versions of the project’s development and test tooling. No user-facing changes are included in this update.

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
@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: fce1eca1-46b4-4fb3-a447-93865f020c02
📥 Commits

Reviewing files that changed from the base of the PR and between 502f5e8 and 75d41f0.

⛔ Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing: 1
  • package.json

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.

📝 Walkthrough

The package manifest updates @vitest/coverage-v8 and vitest from version 4.1.11 to 4.1.12 in both development dependencies and pnpm overrides.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~4 minutes

Change: Other

Possibly related issues

  • Issue 17865 requests review and application of pending dependency updates, including security updates. This change updates Vitest and its coverage package, which the issue summary says remove two reported @vitest/mocker advisories.

Suggested reviewers: jamesbhobbs

Merge Risk: ⚪ Minimal · up to 75d41

The dependency update is ready to merge with no identified actionable risk.

Pre-merge checks: Passed 6
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly identifies the security-focused dependency update and the two moderate vulnerabilities it addresses.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Updates Docs Passed PASS: This PR only updates Vitest development dependencies and the lockfile from 4.1.11 to 4.1.12. It does not implement a feature, so documentation and roadmap updates are not required by this check.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

🔧 Biome (2.5.15)
package.json

Biome could not lint this file: configuration resulted in errors. Check the repository's Biome configuration and plugins.

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.49%. Comparing base (502f5e8) to head (75d41f0).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tkislan
tkislan marked this pull request as ready for review October 22, 2026 08:39
@tkislan
tkislan requested a review from a team as a code owner October 22, 2026 08:39
@tkislan
tkislan merged commit 9ce734b into main Oct 22, 2026
22 checks passed
@tkislan
tkislan deleted the chore/pnpm-audit-2026-10-22 branch October 22, 2026 09:13
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