CVE-2026-111770 is a high-severity (CVSS 7.7) vulnerability in @modelcontextprotocol/server. A fix is available for @modelcontextprotocol/server — see the affected versions and patch details below.
MCP TypeScript server SDK: Shared transport or server instances delivered one HTTP client's messages to another
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.
@modelcontextprotocol/servernpmDescription
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 Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | @modelcontextprotocol/server | ≥ 2.0.0&&< 2.3.0 | 2.3.0npm install @modelcontextprotocol/server@2.3.0 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for @modelcontextprotocol/server, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update @modelcontextprotocol/server to 2.3.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-111770 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is CVE-2026-111770 in your dependencies?
Find it across npm, including transitive dependencies.