chore(security): patch pnpm audit vulnerabilities via overrides#368
Conversation
Bump pnpm overrides to resolve all 13 vulnerabilities reported by `pnpm audit` (3 high, 10 moderate): - defu >=6.1.5 (GHSA-737v-mqg7-c878, prototype pollution) - vite >=7.3.2 (GHSA-v2wj-q39q-566r, GHSA-p9ff-h696-f583, GHSA-4w7w-66w2-5vf9) - brace-expansion >=5.0.5 (GHSA-f886-m6hf-6m8v) - hono >=4.12.14 (GHSA-26pp-8wgv-hjvm, GHSA-r5rp-j6wh-rvv4, GHSA-xf4j-xp2r-rqqx, GHSA-wmmm-f939-6g9c, GHSA-458j-xx4x-4375, GHSA-xpcf-pg52-r92g) - @hono/node-server >=1.19.13 (GHSA-92pp-h63x-v22m) - postcss >=8.5.10 (GHSA-qx2v-qp2m-jg93) `pnpm audit` now reports no known vulnerabilities. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Required to satisfy the pre-push spell-check hook now that defu appears in package.json overrides. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
📝 WalkthroughWalkthroughConfiguration updates across two files: spell-check allowlist extended with "defu" in Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #368 +/- ##
==========================================
- Coverage 83.34% 82.23% -1.11%
==========================================
Files 145 144 -1
Lines 7987 5867 -2120
Branches 2156 1142 -1014
==========================================
- Hits 6657 4825 -1832
+ Misses 1329 1042 -287
+ Partials 1 0 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@package.json`:
- Around line 63-85: The pnpm override versions in package.json (entries like
"hono", "vite", "defu", "postcss", "brace-expansion" under the "pnpm.overrides"
block) were updated but pnpm-lock.yaml was not regenerated; run pnpm install
locally to update pnpm-lock.yaml so the lockfile reflects these new override
constraints and CI using --frozen-lockfile will pass/audit correctly, then
commit the updated pnpm-lock.yaml alongside the package.json change.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 1d672e3b-5650-4605-ba13-478cd5d3f72a
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (2)
cspell.jsonpackage.json
Resolve 4 moderate pnpm audit vulnerabilities in hono (transitive via packages/mcp > @modelcontextprotocol/sdk > hono), all fixed in 4.12.21: - GHSA-xrhx-7g5j-rcj5 (CVE-2026-47674, CVSS 5.3): ip-restriction middleware bypasses static deny rules for non-canonical IPv6. - GHSA-3hrh-pfw6-9m5x (CVE-2026-47675, CVSS 4.3): cookie helper does not sanitize sameSite and priority, allowing Set-Cookie injection. - GHSA-f577-qrjj-4474 (CVE-2026-47673, CVSS 4.8): jwt/jwk middleware accepts any Authorization scheme, not only Bearer. - GHSA-2gcr-mfcq-wcc3 (CVE-2026-47676, CVSS 5.3): app.mount() strips mount prefix using undecoded path, causing incorrect routing for percent-encoded paths. Bump the existing pnpm.overrides floor for hono >=4.12.18 -> >=4.12.21 following the established convention in this repo (see #387, #368, #307, #295, #292). pnpm install resolves hono to 4.12.23. After this change `pnpm audit` reports no known vulnerabilities. `pnpm typecheck`, `pnpm test` (2242 tests), and `pnpm prettier:check` all pass.
Summary
Bumps
pnpm.overridesin the rootpackage.jsonso thatpnpm auditreports zero known vulnerabilities. All 13 advisories (3 high, 10 moderate) are addressed without touching application code — only transitive versions change.Overrides added
defu>=6.1.5— GHSA-737v-mqg7-c878 (prototype pollution; pulled in viatsdown>unconfig)vite>=7.3.2— GHSA-v2wj-q39q-566r, GHSA-p9ff-h696-f583, GHSA-4w7w-66w2-5vf9 (server.fs.denybypass, dev-server WS arbitrary file read, optimized-deps path traversal; viavite-tsconfig-paths)brace-expansion>=5.0.5— GHSA-f886-m6hf-6m8v (zero-step sequence DoS; the existing@isaacs/brace-expansionoverride is a different package name and did not cover this transitive)postcss>=8.5.10— GHSA-qx2v-qp2m-jg93 (XSS via unescaped</style>)Overrides bumped
hono:>=4.12.7→>=4.12.14— fixes GHSA-26pp-8wgv-hjvm, GHSA-r5rp-j6wh-rvv4, GHSA-xf4j-xp2r-rqqx, GHSA-wmmm-f939-6g9c, GHSA-458j-xx4x-4375, GHSA-xpcf-pg52-r92g@hono/node-server:>=1.19.10→>=1.19.13— GHSA-92pp-h63x-v22m (middleware bypass via repeated slashes)Other changes
cspell.json: addeddefuto the dictionary so the spell-check pre-push hook passes.Test plan
pnpm installsucceedspnpm auditreportsNo known vulnerabilities foundpackages/mcpbreaks at the newhonomajor-minor (it stays within 4.12.x)🤖 Generated with Claude Code
Summary by CodeRabbit