Skip to content

chore(security): resolve pnpm audit vulnerabilities (1 high, 3 moderate) - #588

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

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

Conversation

@tkislan

@tkislan tkislan commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

pnpm audit reports four advisories, all in transitive dependencies. Both packages already have floor entries in root pnpm.overrides, so this follows the convention from #546, #547 and #561: raise the floors and refresh the lockfile. No direct dependency changes.

Advisory Package Severity Path Fixed in
GHSA-5r4p-p66f-jhc7 hono 4.13.7 moderate prod: mcp > @modelcontextprotocol/sdk > hono 4.13.11
GHSA-587h-7wmj-h5pm vite 8.0.16 high dev: vitest > vite 8.1.6 / 8.2.4 / 8.3.3
GHSA-r825-w8mm-5pxw vite 8.0.16 moderate dev: vitest > vite 8.1.6 / 8.2.4 / 8.3.3
GHSA-698v-4r3x-3vcv vite 8.0.16 moderate dev: vitest > vite 8.1.6 / 8.2.4 / 8.3.3
-      "hono": ">=4.13.5",
+      "hono": ">=4.13.11",
...
-      "vite": ">=8.0.16",
+      "vite": ">=8.3.3",

hono: override floor raised to >=4.13.11

  • The override resolves to hono 4.13.13. @modelcontextprotocol/sdk@1.32.1 declares hono: ^4.11.4, which 4.13.13 satisfies.
  • A direct dependency bump can't carry the fix: SDK 1.32.1 is already the latest release.
  • @deepnote/mcp ships the SDK as a production dependency, but it doesn't use the vulnerable path. It imports only the SDK's stdio server, and the SDK loads hono only from server/streamableHttp.js, which never calls serveStatic.

vite: override floor raised to >=8.3.3, not >=8.1.6

  • The vite advisories cover the copy of launch-editor that vite bundles. GitHub lists a separate fix for each 8.x minor line (8.1.6, 8.2.4, 8.3.3).
  • The >=8.1.6 that pnpm audit suggests would still allow 8.2.0–8.2.3 and 8.3.0–8.3.2. >=8.3.3 allows only fixed releases.
  • A direct dependency bump can't carry the fix: vitest 4.1.11 and 4.1.12 both accept vite ^6 || ^7 || ^8.
  • No workspace package depends on vite directly, and tsdown uses its own rolldown, so the build is unaffected.

vite resolves to 8.3.4, not 8.3.5

vite 8.3.5 was published less than 24 hours before this change, and renovate.json waits 24 hours before taking a release (minimumReleaseAge: 1440). The lockfile was resolved with --config.minimum-release-age=1440, so it picks 8.3.4, published 2026-10-08. package.json keeps only the floor, so the next lockfile refresh can move to 8.3.5.

vite 8.3.4 brings these lockfile changes:

  • rolldown 1.0.3 → 1.2.14
  • @oxc-project/types 0.133.0 → 0.154.0
  • the wasm32-wasi binding chain (@emnapi/*, @napi-rs/wasm-runtime, @tybys/wasm-util, tslib) is removed

postcss and picomatch refreshed in the lockfile only

vite 8.3.4 declares postcss ^8.5.29 and picomatch ^4.0.7. The existing postcss >=8.5.18 and picomatch >=4.0.4 overrides replace those ranges, so vite would otherwise run on the locked postcss 8.5.26 and picomatch 4.0.5, which are below its declared minimums. Both were re-resolved without changing their override floors:

  • postcss 8.5.26 → 8.5.31
  • picomatch 4.0.5 → 4.0.7
  • nanoid 3.3.18 → 3.3.20, because postcss 8.5.31 requires ^3.3.20

How the lockfile was regenerated

pnpm 10.19 keeps reusing the locked vite@8.0.16 entry after the override changes; it reports unmet peer vite@>=8.3.3: found 8.0.16 instead of re-resolving. These steps all leave vite at 8.0.16: pnpm install --lockfile-only, pnpm update vite -r --depth Infinity, --fix-lockfile, and an exact override.

The lockfile was therefore re-resolved in a clean copy without node_modules, after deleting the stale vite@8.0.16 blocks. That fetch also added registry metadata (libc:, deprecated:) to 38 package entries whose versions did not change: @yuku-*, biome, rolldown 1.2.5 and lightningcss bindings. Those entries were reset to their main versions to keep the diff to real changes. Running pnpm install --lockfile-only on the result changes nothing.

Not changed

  • Upper bounds. Both floors stay open-ended, as before. hono 5.0.0-rc.1 is on the next tag while the SDK declares ^4, and vitest accepts vite ^8 at most. That risk existed before this PR, which does not add it.

Verification

  • pnpm audit and pnpm audit --prod: no known vulnerabilities
  • pnpm install --frozen-lockfile: passes, and pnpm install --lockfile-only leaves the lockfile unchanged
  • vitest resolves vite 8.3.4 at runtime
  • pnpm build, pnpm typecheck, pnpm biome:check, pnpm prettier:check: pass
  • pnpm test: 190 files, 3595 tests pass. 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 minimum supported versions for Hono and Vite dependencies.

pnpm audit reports four advisories in transitive dependencies. Both
packages already have floor entries in root pnpm.overrides, so raise
those floors and refresh the lockfile. No direct dependency changes.

- hono 4.13.7, production, via mcp > @modelcontextprotocol/sdk:
  GHSA-5r4p-p66f-jhc7 (moderate). serveStatic decodes the request path
  a second time, which lets static paths bypass middleware. Fixed in
  4.13.11. Raise the override >=4.13.5 -> >=4.13.11; it resolves to
  4.13.13. The SDK is already at its latest release (1.32.1), so bumping
  it cannot carry the fix.
- vite 8.0.16, dev only, via vitest: GHSA-587h-7wmj-h5pm (high),
  GHSA-r825-w8mm-5pxw and GHSA-698v-4r3x-3vcv (moderate), all in the
  launch-editor copy that vite bundles. Each 8.x minor line has its own
  fix (8.1.6, 8.2.4, 8.3.3), so the >=8.1.6 that pnpm audit suggests
  would still allow 8.2.0-8.2.3 and 8.3.0-8.3.2. Raise the override
  >=8.0.16 -> >=8.3.3. vitest 4.1.12 still accepts any vite ^8, so a
  vitest bump would not carry the fix.

The lockfile resolves vite to 8.3.4 instead of 8.3.5: 8.3.5 was
published less than 24 hours before this change, and renovate.json
waits 24 hours (minimumReleaseAge 1440). vite 8.3.4 pulls in rolldown
1.0.3 -> 1.2.14 and @oxc-project/types 0.133.0 -> 0.154.0. The
wasm32-wasi binding chain (@emnapi/*, @napi-rs/wasm-runtime,
@tybys/wasm-util, tslib) leaves the lockfile.

vite 8.3.4 declares postcss ^8.5.29 and picomatch ^4.0.7, but the
existing postcss and picomatch overrides replace those ranges, so the
lockfile would keep 8.5.26 and 4.0.5. Refresh both in the lockfile
(postcss 8.5.31, picomatch 4.0.7) without changing their override
floors. nanoid 3.3.18 -> 3.3.20 follows because postcss 8.5.31
requires ^3.3.20.

pnpm 10.19 keeps reusing the locked vite@8.0.16 entry even after the
override changes. To get past it, the lockfile was re-resolved in a
clean copy without node_modules, after deleting the stale vite@8.0.16
blocks. That fetch also added registry metadata (libc, deprecated) to
38 package entries whose versions did not change. Those entries were
reset to their main versions. 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 21, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: c18bd590-1404-4f6b-b2d3-05a4a8d63956
📥 Commits

Reviewing files that changed from the base of the PR and between 764f602 and fddfe05.

⛔ 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; 7 remain after this review.

📝 Walkthrough

The pnpm override minimum for hono changes from 4.13.5 to 4.13.11. The minimum for vite changes from 8.0.16 to 8.3.3.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Possibly related issues

  • deepnote/deepnote-internal#17865 — The PR raises dependency version floors, which aligns with the issue’s general dependency-upgrade objective. It does not update postcss-selector-parser.

Suggested reviewers: jamesbhobbs

Merge Risk: ⚪ Minimal · up to fddfe

The dependency override updates are mergeable with no identified blocking 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 accurately identifies the security-focused dependency updates and vulnerability remediation described in the pull request.
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. The PR only updates dependency override floors and the lockfile (package.json, pnpm-lock.yaml). It does not implement a feature, so this documentation check is not applicable. The linked lan…
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.)

Full details: Updates Docs

Explanation

PASS. The PR only updates dependency override floors and the lockfile (package.json, pnpm-lock.yaml). It does not implement a feature, so this documentation check is not applicable. The linked landing-page repository is unavailable; check it separately if this security maintenance requires a roadmap entry.

  • 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.14)
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.

@tkislan
tkislan marked this pull request as ready for review October 21, 2026 12:23
@tkislan
tkislan requested a review from a team as a code owner October 21, 2026 12:23
@codecov

codecov Bot commented Oct 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.49%. Comparing base (764f602) to head (fddfe05).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #588      +/-   ##
==========================================
- Coverage   90.49%   90.49%   -0.01%     
==========================================
  Files         217      217              
  Lines       12650    12655       +5     
  Branches     3649     3652       +3     
==========================================
+ Hits        11448    11452       +4     
- Misses       1199     1200       +1     
  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 requested review from dinohamzic and m1so October 22, 2026 08:14
@tkislan
tkislan merged commit 502f5e8 into main Oct 22, 2026
22 checks passed
@tkislan
tkislan deleted the chore/pnpm-audit-2026-10-21 branch October 22, 2026 08:18
tkislan added a commit that referenced this pull request Oct 22, 2026
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.


Claude-Session: https://claude.ai/code/session_01Xojah1Cd55qFBFkBRZQAcy

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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