Commit 0cb605d
authored
fix(plugin-mcp): bump @modelcontextprotocol/sdk to 1.30.0 for GHSA-frvp-7c67-39w9 (3.x) (#17611)
Bumps `@modelcontextprotocol/sdk` from `1.27.1` to `1.30.0` to resolve
[GHSA-frvp-7c67-39w9](GHSA-frvp-7c67-39w9),
a path traversal in `@hono/node-server` affecting every `1.x` release.
`1.30.0` is the first SDK version whose `@hono/node-server` range
(`^1.19.9 || ^2.0.5`) admits the patched `>= 2.0.5`, so downstream
installs can reach it instead of being stuck on the exact pin.
The SDK bump alone fixes downstream consumers — a fresh `npm`/`pnpm
install` of the published package resolves `@hono/node-server` to
`2.0.12`. But this repo's own lockfile stayed on the vulnerable
`1.19.14`: pnpm reuses any already-resolved version that still satisfies
the union range and won't upgrade a transitive on its own. Clearing it
required three supporting changes:
- Bumps the `mcp-handler>@modelcontextprotocol/sdk` override from
`1.27.1` to `1.30.0`, dropping the duplicate `1.x`-range SDK that
`mcp-handler` otherwise pulls in.
- Bumps the dev-only `@modelcontextprotocol/sdk` in `test/package.json`
to `^1.30.0` for consistency.
- Adds a `'@hono/node-server@<2.0.5': '>=2.0.5'` override to force the
transitive onto the patched line, since no patched `1.x` exists and pnpm
won't move it otherwise. This affects only this repo's tree, not
published resolution.
Net lockfile change: `@hono/node-server` `1.19.14` → `2.0.12`, single
`@modelcontextprotocol/sdk@1.30.0`, no unrelated churn.
3.x only — `plugin-mcp@4.0` already migrated off the SDK.
Fixes #176101 parent ca3e899 commit 0cb605d
4 files changed
Lines changed: 22 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments