Repository navigation
fix(deps): override @hono/node-server to ^2.0.5 (Windows path traversal, #4401) - #4591
Merged
imdreamrunner merged 1 commit intoAug 4, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR No new or modified components detected. Bundle Size SummaryNo component packages changed. Accessibility AuditStatus: No accessibility violations detected. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
jiunshinn
marked this pull request as ready for review
July 31, 2026 11:54
jiunshinn
requested review from
cixzhang,
ejhammond and
imdreamrunner
as code owners
July 31, 2026 11:54
imdreamrunner
enabled auto-merge (squash)
August 4, 2026 00:49
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4401 (Dependabot alert #106).
What
Adds a pnpm override forcing
@hono/node-serverto>=2.0.5:@modelcontextprotocol/[email protected](used byapps/docsite, directly and viamcp-handler) depends on@hono/node-server ^1, which resolved 1.19.14 — vulnerable to path traversal inserve-staticon Windows via encoded backslashes (%5C).^1range can never reach on its own, so this needs either an sdk release on 2.x or a targeted override. This PR takes the override route (same shape as the merged sharp override, fix(deps): override sharp to 0.35 to clear inherited libvips CVEs (#4400) #4449, and the js-yaml override, deps: bump js-yaml to ^5.2.2 to fix DoS (fixes #4399) #4402).pnpm-workspace.yaml(pnpm 11 no longer readspnpm.overridesfrompackage.json), with a comment explaining why and when to drop it, following the existing sharp/js-yaml entries.Verification
Resolution —
pnpm installresolves@hono/[email protected](2.0.12 is held back byminimumReleaseAge);pnpm whyconfirms a single version workspace-wide, and the lockfile diff touches only this chain.API compatibility — the sdk's only import from
@hono/node-serverisgetRequestListener(fetchCallback, { overrideGlobalObjects: false })indist/*/server/streamableHttp.js. 2.0.11 exportsgetRequestListenerwith the same signature including theoverrideGlobalObjectsoption (verified indist/index.d.mts). The sdk does not useserve,createAdaptorServer, orserve-static. 2.x peers onhono ^4, which the workspace already holds at^4.12.25.Runtime smoke test — ran a full MCP session over the sdk's Node
StreamableHTTPServerTransport(the only code path that loads@hono/node-server) with 2.0.11 installed: stateless per-request transport (the same mode the docsite/mcproute uses viamcp-handler), real HTTP server, sdk client.initialize→tools/list→tools/callall succeeded:(Note: the docsite route itself goes through the sdk's
webStandardStreamableHttptransport, which doesn't touch@hono/node-serverat all — the Node transport smoke above is the worst-case path.)Repo checks —
pnpm -F @astryxdesign/docsite generate && test: 303/303 pass.pnpm -F @astryxdesign/docsite typecheck: clean.check:sync/check:package-boundaries/check:changesets/check:demo-media/check:executable-bits: all green. Pre-existing peer warnings (mcp-handlerwants sdk 1.26.0,@stylexjs/unpluginwants unplugin ^2) are unchanged by this PR.Engines note —
@hono/node-server2.x requires Node >= 20 (1.x was >= 18.14.1); the repo is on Node 24 (.nvmrc, CI), so no impact.Changeset
None — only
pnpm-workspace.yaml+pnpm-lock.yamlchange, no published package is modified. Same as the merged sharp override #4449.Conflict note
This touches the same
overrides:block as open PR #4101 (prune stale pnpm overrides / move pins to the catalog) — whichever lands second will need a trivial rebase.