Repository navigation
fix: remediate dependency audit vulnerabilities - #515
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Essentials Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughUpdated Priority: ➖ Normal Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This updates vulnerable dependency resolutions and test tooling. The supplied validation reports successful installation, audit, tests, and type checking, with no current merge-readiness risk identified. Suggested reviewers: 🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #515 +/- ##
=======================================
Coverage 89.07% 89.07%
=======================================
Files 201 201
Lines 11521 11521
Branches 3239 3239
=======================================
Hits 10262 10262
Misses 1257 1257
Partials 2 2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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>
Summary
Remediate the six advisories reported by
pnpm auditusing the repository’s existing dependency strategy.Decisions
vitestand@vitest/mockerwere development-only at4.1.8. Upgrade the direct Vitest test tooling and coverage package to the fixed4.1.11release. No standalone@vitest/mockeroverride was added because it is controlled transitively by Vitest.js-yamlis transitive through CLI build tooling (json-schema-to-typescript). Raise the existing root override from>=4.3.1 <5to>=4.3.2 <5; do not add a direct dependency.toSSGtraversal), GHSA-g6gw-c38x-mqfc / CVE-2026-84364 (HonoparseBodyexhaustion), and GHSA-crvj-82cr-hjcx / CVE-2026-84363 (Hono query parsing): all affect the same transitivehono@4.13.2under@modelcontextprotocol/sdk. Raise the existing root override from>=4.12.34to>=4.13.5, resolving4.13.7. No MCP SDK or direct Hono dependency change is needed.Representative manifest diff
The lockfile was regenerated with pnpm and updates Vitest packages, Hono to
4.13.7, and js-yaml to4.3.2.Validation
pnpm audit --json: 0 vulnerabilitiespnpm audit --prod: no known vulnerabilitiespnpm install --frozen-lockfile: passedpnpm test: 3,146 passed, 1 skippedpnpm typecheck: passedpnpm biome:check: passed with 8 existing warnings in example server filesSummary by CodeRabbit