Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

fix(deps): override @hono/node-server to ^2.0.5 (Windows path traversal, #4401) (#4591)

Jiun Shinfce8b64151b1
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 92eac75f3b..c200818d17 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -23,6 +23,7 @@ overrides:
esbuild: '>=0.28.1'
'@babel/core': ^7.29.6
hono: ^4.12.25
+ '@hono/node-server': ^2.0.5
read-yaml-file: ^2.1.0
read-yaml-file>js-yaml: ^4.2.0
'@changesets/parse>js-yaml': ^4.2.0
@@ -1618,9 +1619,9 @@ packages:
peerDependencies:
react: '>= 16 || ^19.0.0-rc'
- resolution: {integrity: sha512-GwtvgtXxnWsucXvbQXkRgqksiH2Qed37H9xHZocE5sA3N8O8O8/8FA3uclQXxXVzc9XBZuEOMK7+r02FmSpHtw==}
- engines: {node: '>=18.14.1'}
+ resolution: {integrity: sha512-bjD221KPLoJTWUwso1J6fGKiTXEUFedG/s0visavY4zakFPkeGURMRNly+FhBHs7T8Dz4qHaZIMX9ZoJHSJtKA==}
+ engines: {node: '>=20'}
peerDependencies:
hono: ^4.12.25
@@ -7155,7 +7156,7 @@ snapshots:
dependencies:
react: 19.2.7
dependencies:
hono: 4.12.27
@@ -7590,7 +7591,7 @@ snapshots:
'@modelcontextprotocol/[email protected]([email protected])':
dependencies:
- '@hono/node-server': 1.19.14([email protected])
+ '@hono/node-server': 2.0.11([email protected])
ajv: 8.20.0
ajv-formats: 3.0.1([email protected])
content-type: 1.0.5
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 4d7e76544c..9aeba6680c 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -45,6 +45,14 @@ overrides:
esbuild: '>=0.28.1'
'@babel/core': ^7.29.6
hono: ^4.12.25
+ # @modelcontextprotocol/sdk 1.x resolves @hono/node-server ^1, which is
+ # vulnerable to path traversal in serve-static on Windows via encoded
+ # backslashes (%5C). Patched only in 2.0.5 — a semver-major the sdk's ^1
+ # range can never reach on its own. The sdk only calls getRequestListener
+ # (with overrideGlobalObjects), which 2.x exports unchanged, and 2.x peers
+ # on hono ^4 — already held above. Drop this entry once the sdk depends on
+ # @hono/node-server 2.x itself.
+ '@hono/node-server': ^2.0.5
# read-yaml-file 1.x is hard-wired to js-yaml 3.x (`safeLoad`), which has no
# fix for CVE-2026-53550 — patched only in js-yaml 4.2.0. Overriding js-yaml
# alone breaks it (4.x renamed safeLoad -> load), so lift the package instead: