MCP TypeScript server SDK: Shared transport or server instances delivered one HTTP client's messages to another
CVE-2026-111770 · GHSA-jm63-cq47-j5jp · published 20 Oct 2026
How serious is it
- Severity: high, CVSS score 7.7 out of 10.
- No exploit prediction (EPSS) score yet.
- Not on the CISA list of exploited vulnerabilities.
- No public exploit in Exploit-DB.
Is your app affected by CVE-2026-111770?
Paste this prompt into Claude Code, Cursor or any AI coding tool: it runs a free Shippable scan of your project and fixes what it finds. Built with Lovable, Bolt or v0? Scan your live app. Or upload your package file.
Who is affected
@modelcontextprotocol/server(npm) >= 2.0.0, < 2.3.0
How to check
- Run
npm ls @modelcontextprotocol/serverin your project to see the installed version, including copies pulled in by other packages. - Or paste your lockfile into the checker: it lists every package with a known vulnerability, this one included.
- Or run
npx shippable-dev scan localhost:3000in your project folder. It reads your lockfile and flags this vulnerability along with every other known one.
How to fix
Copies a prompt for Claude Code, Cursor or Codex: it checks your lockfiles for this and upgrades it.
- Upgrade
@modelcontextprotocol/serverto 2.3.0 or later, commit the lockfile and redeploy. - If a vulnerable version was live, check your logs and rotate the secrets that server could read.
The advisory
### Summary
In affected versions, an MCP server reached over HTTP could deliver one client's responses and notifications to another client. This happened when clients shared one stateless transport, or one `McpServer` or `Server` instance.
Messages were matched to a connection by JSON-RPC `id` alone. SDK clients number requests from 0, so ids collide in normal use.
### Am I affected?
Yes, if more than one client can reach your HTTP endpoint and your code creates the transport or the server once at startup, instead of once per request or per session. Until this release, the README examples of `@modelcontextprotocol/hono`, `express`, `fastify` and `node` showed that pattern.
Affected versions: `@modelcontextprotocol/server` 2.0.0 through 2.2.0.
Not affected:
- `createMcpHandler()` with a factory that builds a new server on every call
- stdio servers
- `@modelcontextprotocol/sdk` 1.26.0 and later
### Fix
Upgrade to `@modelcontextprotocol/server` 2.3.0 or later.
**You also need to change your code.** The SDK now refuses to be shared, so an affected app fails requests after upgrading: a second `connect()` rejects with `ALREADY_CONNECTED`, and a stateless transport rejects its second request.
Change to one of these:
- **`createMcpHandler()`:** pass a factory that builds a new `McpServer` on every call.
- **Per request:** build a new `McpServer` and a new transport inside the request handler.
- **Per session:** set `sessionIdGenerator` and keep one `McpServer` and one transport per session.
If you cannot upgrade yet, the same change fixes affected versions.
Check your whole app
Dependencies are only half of it. Free and read-only: before you push, run npx shippable-dev scan localhost:3000 in your project folder, no account needed. For your live app, you prove it's yours with a one-line tag first.
References
- github.com/modelcontextprotocol/typescript-sdk/security/advisories/GHSA-jm63-cq47-j5jp
- github.com/modelcontextprotocol/typescript-sdk/pull/2918
- github.com/modelcontextprotocol/typescript-sdk/commit/84804c22e45a662675a198f853b7f00063838a8d
- github.com/advisories/GHSA-jm63-cq47-j5jp
Merged from GitHub Advisory Database. Last updated 23 Oct 2026. All vulnerabilities · RSS · JSON