Repository navigation
chore(security): resolve pnpm audit vulnerabilities (1 critical, 2 high) - #561
Conversation
Both audit CI jobs fail. Production dependencies carry two advisories, both reaching the tree through packages/mcp: - @modelcontextprotocol/sdk 1.30.0: GHSA-6qxp-vccf-f47h (high), the OAuth client could send credentials to an authorization server chosen by the MCP server. Patched in 1.31.0; bump the direct dependency ^1.30.0 -> ^1.32.1. - proxy-addr 2.0.7, via @modelcontextprotocol/sdk > express: GHSA-jqcg-44mw-7w3h (critical), IP spoofing via an IPv4-mapped IPv6 trust subnet. express 5.2.1 already allows ^2.0.7, so 2.0.8 satisfies it; the lockfile was simply resolved before 2.0.8 was published. Pin the floor with an override so it cannot resolve back down. The remaining advisories in the reported audit (ip-address, undici, fast-uri) are already covered by existing overrides and no longer reproduce. Audit - All additionally fails on two dev-only transitives, fixed here so the branch lands green: - source-map-js, via @vitest/coverage-v8 > magicast: GHSA-68fv-2mgg-jv7q (high), event-loop denial of service through indexed source-map section offsets. Patched in 1.2.2. - smol-toml, via cspell > cspell-config-lib: GHSA-r4xh-jqrq-34v2 (moderate), quadratic-time parse() from parseKey rescanning the document per key line. Patched in 1.9.0; raise the existing >=1.6.1 override. The SDK bump adds no new packages to the lockfile — every dependency of 1.32.1 was already resolved. pnpm audit and pnpm audit --prod both report no known vulnerabilities; build, typecheck, biome and prettier pass. The one failing test (packages/cli/src/commands/run.test.ts) fails identically on main and is a local python3 resolution quirk, unrelated to this change. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughThe root Priority: ⬆️ High Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Other Suggested reviewers: Merge Risk: ⚪ Minimal · up to The dependency updates appear ready to merge after normal checks. 🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
Warning Some tools did not complete. Review the errors below. 🔧 Biome (2.5.14)package.jsonBiome could not lint this file: configuration resulted in errors. Check the repository's Biome configuration and plugins. packages/mcp/package.jsonBiome could not lint this file: configuration resulted in errors. Check the repository's Biome configuration and plugins. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #561 +/- ##
========================================
Coverage 90.00% 90.00%
========================================
Files 211 211
Lines 12451 12451
Branches 3588 3482 -106
========================================
Hits 11206 11206
Misses 1242 1242
Partials 3 3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
@deepnote/mcp 0.5.0 -> 0.5.1 (patch): @modelcontextprotocol/sdk floor ^1.32.1 (#561). Not released: blocks, cli, cloud, convert, database-integrations, local-runner, reactivity, runtime-core (nothing shipped changed). Claude-Session: https://claude.ai/code/session_01BYyMrxsMPw3Yu9zmWuusYP Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Both audit CI jobs currently fail. This clears them.
Production dependencies (
pnpm audit --prod)Both advisories reach the tree through
packages/mcp:proxy-addr2.0.7>=2.0.8@modelcontextprotocol/sdk1.30.0^1.30.0->^1.32.1proxy-addrarrives via@modelcontextprotocol/sdk > express. express 5.2.1 already declaresproxy-addr: ^2.0.7, so 2.0.8 satisfies it unchanged — the lockfile was simply resolved before 2.0.8 was published. The override pins the floor so it cannot resolve back down.The other advisories in the reported audit (
ip-address,undici,fast-uri) are already covered by existing overrides and no longer reproduce — that audit output predates those entries.Dev dependencies (
pnpm audit)Audit - Allis also a hard-fail job and is red onmainfor two dev-only transitives. Fixed here so this branch lands green:source-map-js, via@vitest/coverage-v8 > magicast>=1.2.2smol-toml, viacspell > cspell-config-libparse()fromparseKeyrescanning per key line>=1.9.0Verification
pnpm audit --prod→ no known vulnerabilitiespnpm audit→ no known vulnerabilitiespnpm build,pnpm typecheck,pnpm biome:check,pnpm prettier:checkall passpnpm test: 977 pass, 1 fail —packages/cli/src/commands/run.test.tsfails identically onmain(localpython3resolution quirk), unrelated to this changeThe SDK bump adds no new packages to the lockfile; every dependency of 1.32.1 was already resolved. The lockfile diff is 10 lines.
🤖 Generated with Claude Code
Summary by CodeRabbit