Skip to content

fix(deps): patch @hono/node-server path-traversal (MEDIUM, GHSA-frvp-7c67-39w9)#124

Merged
aaronjmars merged 1 commit into
mainfrom
fix/security-hono-node-server
Jul 23, 2026
Merged

fix(deps): patch @hono/node-server path-traversal (MEDIUM, GHSA-frvp-7c67-39w9)#124
aaronjmars merged 1 commit into
mainfrom
fix/security-hono-node-server

Conversation

@aaronjmars

Copy link
Copy Markdown
Collaborator

Closes the last open Dependabot advisory on this repo (the other four — #121, #122, #123 — are already merged).

Change (transitive-only)

Package Before After Advisory
@hono/node-server 1.19.14 2.0.11 (overrides: ^2.0.5) GHSA-frvp-7c67-39w9 — path traversal in serve-static on Windows via encoded backslash (%5C), patched in 2.0.5

Why an override (and why a major bump)

There is no patched 1.x release — the fix ships only in the 2.x line. The dependency chain is:

shadcn@modelcontextprotocol/sdk@1.29.0 (^1.19.9) → @hono/node-server

Even the latest MCP SDK (1.29.0, already installed) still pins @hono/node-server to ^1.x, so bumping the SDK doesn't help — an overrides entry is the only way to reach the patched version.

Blast radius

@hono/node-server is reachable only through shadcn's MCP CLI feature, not the deployed Next.js app's runtime, and the vuln is Windows-specific. So forcing the 2.x major has minimal risk here.

Verification

  • npm ci (pinned npm@10.9.8) clean, eslint clean, 292/292 vitest tests pass locally.
  • Diff limited to package.json + package-lock.json (8 lockfile lines); no other dependency changed.

Override @hono/node-server to ^2.0.5 (resolves 2.0.11) to close
GHSA-frvp-7c67-39w9 — path traversal in serve-static on Windows via
encoded backslash (%5C). No 1.x patch exists; the fix ships only in 2.x.

Transitive via shadcn -> @modelcontextprotocol/sdk (^1.19.9), which is
only reachable through shadcn's MCP CLI, not the runtime app. Latest MCP
SDK (1.29.0) still pins hono/node-server ^1.x, so an override is the only
path to the patched line. Diff limited to package.json + package-lock.json.
@aaronjmars
aaronjmars merged commit d3d794b into main Jul 23, 2026
2 checks passed
@aaronjmars
aaronjmars deleted the fix/security-hono-node-server branch July 23, 2026 22:23
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.

1 participant