Skip to content

chore(security): resolve pnpm audit vulnerabilities (1 critical, 2 high) - #561

Merged
tkislan merged 1 commit into
mainfrom
chore/security-audit-mcp-sdk-proxy-addr
Oct 7, 2026
Merged

tkislan merged 1 commit into
mainfrom
chore/security-audit-mcp-sdk-proxy-addr

Conversation

@jamesbhobbs

@jamesbhobbs jamesbhobbs commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Both audit CI jobs currently fail. This clears them.

Production dependencies (pnpm audit --prod)

Both advisories reach the tree through packages/mcp:

Severity Package Advisory Fix
critical proxy-addr 2.0.7 GHSA-jqcg-44mw-7w3h — IP spoofing via IPv4-mapped IPv6 trust subnet override >=2.0.8
high @modelcontextprotocol/sdk 1.30.0 GHSA-6qxp-vccf-f47h — OAuth client could send credentials to an authorization server chosen by the MCP server bump ^1.30.0 -> ^1.32.1

proxy-addr arrives via @modelcontextprotocol/sdk > express. express 5.2.1 already declares proxy-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 - All is also a hard-fail job and is red on main for two dev-only transitives. Fixed here so this branch lands green:

Severity Package Advisory Fix
high source-map-js, via @vitest/coverage-v8 > magicast GHSA-68fv-2mgg-jv7q — event-loop DoS through indexed source-map section offsets override >=1.2.2
moderate smol-toml, via cspell > cspell-config-lib GHSA-r4xh-jqrq-34v2 — quadratic-time parse() from parseKey rescanning per key line raise existing override to >=1.9.0

Verification

  • pnpm audit --prod → no known vulnerabilities
  • pnpm audit → no known vulnerabilities
  • pnpm build, pnpm typecheck, pnpm biome:check, pnpm prettier:check all pass
  • pnpm test: 977 pass, 1 fail — packages/cli/src/commands/run.test.ts fails identically on main (local python3 resolution quirk), unrelated to this change

The 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

  • Maintenance
    • Updated underlying components and minimum supported versions. No user-facing changes are noted.

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>
@jamesbhobbs
jamesbhobbs requested a review from a team as a code owner October 7, 2026 18:52
@coderabbitai

coderabbitai Bot commented Oct 7, 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: 22c7ff42-764a-45da-857c-302071dffae7
📥 Commits

Reviewing files that changed from the base of the PR and between dc889f4 and 6fb5490.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (2)
  • package.json
  • packages/mcp/package.json

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.


📝 Walkthrough

Walkthrough

The root package.json adds overrides for proxy-addr and source-map-js, and raises the minimum smol-toml version from 1.6.1 to 1.9.0. The MCP package updates @modelcontextprotocol/sdk from ^1.30.0 to ^1.32.1.

Priority: ⬆️ High

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Suggested reviewers: tkislan

Merge Risk: ⚪ Minimal · up to 6fb54

The dependency updates appear ready to merge after normal checks.

🚥 Pre-merge checks | ✅ 6
✅ Passed checks (6 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the security dependency updates and the reported vulnerability counts. It matches the main change.
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 No feature is implemented in this pull request. The diff only updates dependency versions, security overrides, and the lockfile, so documentation and roadmap updates are not required by this check.
  • Autopilot · 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.

packages/mcp/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.

@codecov

codecov Bot commented Oct 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.00%. Comparing base (dc889f4) to head (6fb5490).

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.
📢 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 merged commit a242a4c into main Oct 7, 2026
22 checks passed
@tkislan
tkislan deleted the chore/security-audit-mcp-sdk-proxy-addr branch October 7, 2026 19:44
tkislan added a commit that referenced this pull request Oct 8, 2026
@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>
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