CVE-2026-111770
MCP TypeScript server SDK: Shared transport or server instances delivered one HTTP client's messages to another
Description
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/sdk1.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 newMcpServeron every call.- Per request: build a new
McpServerand a new transport inside the request handler. - Per session: set
sessionIdGeneratorand keep oneMcpServerand one transport per session.
If you cannot upgrade yet, the same change fixes affected versions.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm.at.modelcontextprotocol » servervia npm @modelcontextprotocol/server | >= 2.0.0, < 2.3.0 | 2.3.0 |
Blast radius
0% of the dependent artifacts (0) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 2 |
Most used dependents
- org.mvnpm.at.angular » cli0 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Package | modelcontextprotocol/typescript-sdk | github.com |
| Web | modelcontextprotocol/typescript-sdk advisory GHSA-jm63-cq47-j5jp | github.com |
| Web | modelcontextprotocol/typescript-sdk pull request #2918 | github.com |
| Web | modelcontextprotocol/typescript-sdk commit 84804c2 | github.com |
