Skip to content

Bump @modelcontextprotocol/sdk to 1.30.0 to resolve @hono/node-server path traversal alert #295 - #4384

Merged
wojtekn merged 2 commits into
trunkfrom
fix-hono-node-server-path-traversal-alert
Jul 29, 2026
Merged

Bump @modelcontextprotocol/sdk to 1.30.0 to resolve @hono/node-server path traversal alert #295#4384
wojtekn merged 2 commits into
trunkfrom
fix-hono-node-server-path-traversal-alert

Conversation

@wojtekn

@wojtekn wojtekn commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Related issues

  • Related to Dependabot alert #295

How AI was used in this PR

Claude Code traced @hono/node-server through the tree (transitive, pulled only by @modelcontextprotocol/sdk in the data-liberation-agent package), determined that the SDK's older pin (^1.19.9) couldn't reach a patched hono, and found that SDK 1.30.0 widened its range to ^1.19.9 || ^2.0.5. It bumped the SDK pin so npm could dedup hono up to the patched 2.0.12, verified no direct-dependency pollution or override was needed, rebuilt the checked-in MCP bundle, and confirmed the package builds and that the only failing tests are pre-existing browser-fixture failures identical on trunk. I reviewed the diff myself.

Proposed Changes

Resolves the @hono/node-server path-traversal advisory (encoded-backslash %5C directory escape in serve-static on Windows), which reached the tree transitively through the data-liberation-agent's MCP SDK dependency. Bumping @modelcontextprotocol/sdk from 1.29.0 to 1.30.0 lets the resolver move @hono/node-server to 2.0.12 — which also clears a second, newer advisory (unauthenticated WebSocket-handshake memory-leak DoS) that affects hono ≤2.0.9. The checked-in MCP bundle is rebuilt to match, consistent with prior dependency-bump PRs.

No user-visible behavior change. The data-liberation-agent package targets Node ≥22, well above hono 2.x's Node 18.14.1 minimum, so the major bump carries no engine impact.

Testing Instructions

  • npm ci resolves cleanly.
  • npm ls @hono/node-server reports a single copy at 2.0.12 (no lingering 1.19.x, and hono is not added as a direct dependency).
  • npm run build -w data-liberation succeeds and regenerates dist/mcp-server.bundle.mjs.
  • npm audit reports no @hono/node-server findings.

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?
wojtekn and others added 2 commits July 29, 2026 12:15
… path traversal alert #295

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@wojtekn
wojtekn requested a review from a team July 29, 2026 11:11
@wpmobilebot

Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing eb25c28 vs trunk

app-size

Metric trunk eb25c28 Diff Change
App Size (Mac) 1378.86 MB 1378.86 MB +0.00 MB ⚪ 0.0%

site-editor

Metric trunk eb25c28 Diff Change
load 1089 ms 1114 ms +25 ms ⚪ 0.0%

site-startup

Metric trunk eb25c28 Diff Change
siteCreation 6517 ms 6524 ms +7 ms ⚪ 0.0%
siteStartup 2381 ms 2384 ms +3 ms ⚪ 0.0%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff)

@wojtekn
wojtekn merged commit 4ff2d7f into trunk Jul 29, 2026
14 checks passed
@wojtekn
wojtekn deleted the fix-hono-node-server-path-traversal-alert branch July 29, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants