Repository navigation
chore(security): resolve pnpm audit vulnerabilities (1 high, 3 moderate) - #588
Merged
Merged
Conversation
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
Contributor
tkislan
marked this pull request as ready for review
October 21, 2026 12:23
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
dinohamzic
approved these changes
Oct 22, 2026
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>
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 four advisories, all in transitive dependencies. Both packages already have floor entries in rootpnpm.overrides, so this follows the convention from #546, #547 and #561: raise the floors and refresh the lockfile. No direct dependency changes.mcp > @modelcontextprotocol/sdk > honovitest > vitevitest > vitevitest > vitehono: override floor raised to
>=4.13.11@modelcontextprotocol/sdk@1.32.1declareshono: ^4.11.4, which 4.13.13 satisfies.@deepnote/mcpships 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 fromserver/streamableHttp.js, which never callsserveStatic.vite: override floor raised to
>=8.3.3, not>=8.1.6launch-editorthat vite bundles. GitHub lists a separate fix for each 8.x minor line (8.1.6, 8.2.4, 8.3.3).>=8.1.6thatpnpm auditsuggests would still allow 8.2.0–8.2.3 and 8.3.0–8.3.2.>=8.3.3allows only fixed releases.vite ^6 || ^7 || ^8.tsdownuses 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.jsonwaits 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.jsonkeeps only the floor, so the next lockfile refresh can move to 8.3.5.vite 8.3.4 brings these lockfile changes:
@emnapi/*,@napi-rs/wasm-runtime,@tybys/wasm-util,tslib) is removedpostcss and picomatch refreshed in the lockfile only
vite 8.3.4 declares
postcss ^8.5.29andpicomatch ^4.0.7. The existingpostcss >=8.5.18andpicomatch >=4.0.4overrides 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:^3.3.20How the lockfile was regenerated
pnpm 10.19 keeps reusing the locked
vite@8.0.16entry after the override changes; it reportsunmet peer vite@>=8.3.3: found 8.0.16instead 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 stalevite@8.0.16blocks. 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 theirmainversions to keep the diff to real changes. Runningpnpm install --lockfile-onlyon the result changes nothing.Not changed
nexttag while the SDK declares^4, and vitest acceptsvite ^8at most. That risk existed before this PR, which does not add it.Verification
pnpm auditandpnpm audit --prod: no known vulnerabilitiespnpm install --frozen-lockfile: passes, andpnpm install --lockfile-onlyleaves the lockfile unchangedpnpm build,pnpm typecheck,pnpm biome:check,pnpm prettier:check: passpnpm test: 190 files, 3595 tests pass. 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