Model Context Protocol SDK can send client data to the wrong user in shared deployments

HighSE Fix-First Score 43/100CVE-2026-25536SE-AIV-01572Other weaknessAI agents and assistantsMade public 5 Feb 2026

Download as PDF

What this means

In cloud services or multi-user systems that reuse the same server code across different clients, one user's data, tool results, or sensitive information can be sent to another user. An attacker or curious user could read private information, intercept prompts, or see resource contents meant for someone else.

SecurityElites Manager Brief: the decision in one minute

The Model Context Protocol SDK can send one client's data to another client if the same server code is shared across multiple users. This is common in cloud services. You must upgrade to version 1.26.0 and ensure each client gets its own server instance.

SecurityElites Fix-First Score43 of 100
Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity.
SecurityElites fix windowWithin 30 days
High severity. This is our suggestion from common practice; your own policy comes first.
Who should own the fixPlatform engineering or backend team that manages the Node.js service.
Likely effortAbout 1 hour to 4 hours depending on your deployment pattern: code changes are small (create a new server per client, or use sessionIdGenerator), but testing in multi-client scenarios takes time. Longer if you need to refactor stateless deployments.

Questions to ask your team or supplier

  • Do we create a new server instance for each client connection, or do we reuse the same server across multiple clients? (If the latter, we must refactor immediately.)
  • Which of our services or Lambda functions use @modelcontextprotocol/sdk? Have any users reported receiving data or results that do not belong to them?
  • Can we write and run a test that sends overlapping concurrent requests from two different clients and verify that responses are not mixed?

Message you can forward to the owning team

Security notice: Model Context Protocol SDK can send client data to the wrong user in shared deployments (CVE-2026-25536)

Severity: High
SecurityElites Fix-First Score: 43 of 100
SecurityElites fix window: Within 30 days
Action: upgrade to @modelcontextprotocol/sdk 1.26.0 or later.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2026-25536-model-context-protocol-sdk-can-send-client-data-to/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01572

What is at stake in your AI setup

  • Prompts and instructions: users could see the prompts and system instructions sent by other clients, revealing how those clients use your AI service.
  • Tool call results and resource contents: sensitive data from one client's tool calls or file reads could be leaked to another client's connection.
  • Chat history and conversation context: messages and state from one user's conversation could appear in another user's session.
  • Keys and secrets passed to tools: if any client sends API keys, credentials, or authentication tokens in tool parameters, they could leak to other clients.

Map where your company uses AI

Who is exposed

  • Teams running stateless deployments (serverless functions, shared container pools) where one server instance handles requests from multiple clients.
  • Services that reuse a StreamableHTTPServerTransport across HTTP requests without creating a new one per client.
  • Teams that reuse a McpServer instance by connecting it to multiple transports for different clients.
  • Any deployment where the same process serves many concurrent users.

Upgrades you need

SoftwareAffected versionsMove to
@modelcontextprotocol/sdk
npm
1.10.0 up to, but not including, 1.26.01.26.0 or later

Am I affected?

Enter the version you run. Nothing you type is stored.

SecurityElites Developer Brief: the technical picture

Is it being attackedNo known attacks and no public attack code when CISA last reviewed it
Where the attacker must beAnywhere that can reach it over a network, including the internet if it is exposed
Account neededAn ordinary user account
Does a person have to do somethingNo. It works without anyone clicking or opening anything
How hard it is to doEasy. It works reliably once the attacker can reach it
Risk of: data being readHigh
Risk of: data or settings being changedLimited
Risk of: the service being taken downNone
Can attackers automate it at scaleNo, according to CISA. Each target needs manual work
How much control an attacker gainsPartial control, according to CISA

Read from the official severity rating: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N

Kind of coding mistake

  • CWE-362

If you cannot upgrade today

  • If you cannot upgrade immediately: ensure each HTTP client connection creates its own McpServer and StreamableHTTPServerTransport. Do not reuse server instances across requests. This requires code changes but prevents data leaks without upg
  • If you use a framework like Express, move server creation inside the route handler, not outside. This guarantees a new server per request.
  • Avoid concurrent requests from multiple clients to the same process until you upgrade or refactor.

Signs it may already have been used against you

  • Search request logs for cases where a client's request ID appears with a different client's data in the response, or where the response path/resource does not match the request.
  • Look for error messages from clients saying they received unexpected data, different user information, or private resources they should not see.
  • Check tool call logs and resource read logs: if a tool result or resource intended for one client appears in another client's connection, that is a sign of leakage.
  • Monitor for HTTP response code mismatches: if a client sends a valid request but receives a 404 or unexpected error that matches a different client's request, that may indicate collision.

Log searches to start from

Find HTTP responses that may have been routed to wrong client (adapt field names to your logs)Elastic

source=mcp_server AND (request.client_id != response.client_id OR request.session_id != response.session_id)

Written with AI as a starting point. Review them and change the index and field names to match your own logs before you rely on the result.

SecurityElites Fix Guide: step by step

  1. Find where @modelcontextprotocol/sdk is usedSearch your Node.js codebase for `@modelcontextprotocol/sdk` in package.json and in import statements. List every service or Lambda function that imports it.
  2. Check if you create a new server per client or reuse oneLook at your code that creates `McpServer` or `StreamableHTTPServerTransport`. If the same instance handles requests from many clients (common in serverless functions), you are at risk. If you create a fresh server for each client connection, you are likely safe.
  3. Review deployment patternCheck whether your deployment is stateless (many clients share one container or function) or stateful (one client per container). Stateless setups are most at risk.
  4. Upgrade to version 1.26.0 or laterUpdate @modelcontextprotocol/sdk to 1.26.0 in package.json. Run npm install and commit the change.
  5. Refactor to create a new server per clientChange your code so that each incoming client connection gets its own McpServer instance and its own StreamableHTTPServerTransport. If you use a handler function (e.g., HTTP endpoint), create a new server inside the handler, not outside it.
  6. Verify the upgrade workedRun npm list @modelcontextprotocol/sdk and confirm it shows version 1.26.0 or later. Restart the service and check startup logs for errors.
  7. Test with multiple concurrent clientsWrite a test that sends requests from two clients at the same time and verify that each client receives only their own data, not the other client's response.
  8. Check logs for data leaks before the fixSearch request logs and error logs from before the upgrade for any signs that responses were routed to the wrong client (mismatched client IDs, unexpected data in request paths, or error messages mentioning wrong clients).

How to confirm it is fixed: Confirm @modelcontextprotocol/sdk version is 1.26.0 or later by running npm list @modelcontextprotocol/sdk, and verify in your code that each client connection creates a new McpServer and StreamableHTTPServerTransport instance.

SecurityElites Quick Fixes: copy and paste

Upgrade @modelcontextprotocol/sdk with npmupgrade

npm install @modelcontextprotocol/sdk@1.26.0
npm ls @modelcontextprotocol/sdk

Check installed versionfor this issue

npm list @modelcontextprotocol/sdk

Correct pattern: create server per client (HTTP endpoint example)for this issue

app.post('/mcp', async (req, res) => {
  // Create a NEW server and transport for EACH request
  const transport = new StreamableHTTPServerTransport(req, res);
  const server = new McpServer({...});
  await server.connect(transport);
});

Incorrect pattern to avoid: reusing server across clientsfor this issue

// DO NOT DO THIS
const sharedServer = new McpServer({...});
app.post('/mcp', async (req, res) => {
  const transport = new StreamableHTTPServerTransport(req, res);
  await sharedServer.connect(transport); // WRONG: reusing same server
});

Test in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.

Let your AI coding assistant do the upgrade

Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.

Instruction for your coding assistant

You are helping me fix a security vulnerability (CVE-2026-25536) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n   - @modelcontextprotocol/sdk (npm): must be 1.26.0 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.

SecurityElites Incident Drill: could your team handle this?

Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.

What is the main difference between the two vulnerabilities covered in this fix?A good answer: Issue 1 is reusing a single transport across clients, causing message IDs to collide; Issue 2 is reusing a single server instance across multiple transports, causing server-to-client messages to route to the wrong transport.
Which deployment pattern is most at risk?A good answer: Stateless deployments (serverless functions, shared container pools) where one process or function instance handles requests from many different clients.
What is the minimum fix we must make, even if we keep the old SDK version?A good answer: Create a new McpServer and StreamableHTTPServerTransport for each client connection; never reuse the same server or transport across multiple clients.
How would we know if this vulnerability was exploited against us?A good answer: Look for cases where a client's response contains data, resources, or tool results that do not match their request, or where users report seeing other users' private information.

Run a full timed drill with your team

Ticket for your backlog

Paste into Jira, GitHub Issues or any tracker that reads Markdown.

Ready-made ticket

## Model Context Protocol SDK can send client data to the wrong user in shared deployments (CVE-2026-25536)

**Severity:** High  |  **SE Fix-First Score:** 43/100  |  **Fix window:** Within 30 days
**Record:** SE-AIV-01572 https://securityelites.com/ai-vulnerabilities/cve-2026-25536-model-context-protocol-sdk-can-send-client-data-to/

### Why this matters
In cloud services or multi-user systems that reuse the same server code across different clients, one user's data, tool results, or sensitive information can be sent to another user. An attacker or curious user could read private information, intercept prompts, or see resource contents meant for someone else.

### What to do
1. Find where @modelcontextprotocol/sdk is used
2. Check if you create a new server per client or reuse one
3. Review deployment pattern
4. Upgrade to version 1.26.0 or later
5. Refactor to create a new server per client
6. Verify the upgrade worked
7. Test with multiple concurrent clients
8. Check logs for data leaks before the fix

Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-25536-model-context-protocol-sdk-can-send-client-data-to/

### Done when
- [ ] @modelcontextprotocol/sdk is at 1.26.0 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Confirm @modelcontextprotocol/sdk version is 1.26.0 or later by running npm list @modelcontextprotocol/sdk, and verify in your code that each client connection creates a new McpServer and StreamableHTTPServerTransport instance.
- [ ] Logs were checked for signs of earlier use

SecurityElites Fix Tracker

Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.

Sign in to track this fix

Change history

  • 4 Feb 2026: Made public
  • 3 Dec 2026: Published

Official record

### SummaryCross-client data leak via two distinct issues: (1) reusing a single `StreamableHTTPServerTransport` across multiple client requests, and (2) reusing a single `McpServer`/`Server` instance across multiple transports. Both are most common in stateless deployments.### ImpactThis advisory covers two related but distinct vulnerabilities. A deployment may be affected by one or both.#### Issue 1: Transport re-use**What happens:** When a single `StreamableHTTPServerTransport` instance handles multiple client requests, JSON-RPC message ID collisions cause responses to be routed to the wrong client's HTTP connection. The transport maintains an internal `requestId → stream` mapping, and since MCP client SDKs generate message IDs using an incrementing counter starting at 0, two clients produce identical IDs. The second client's request overwrites the first client's mapping entry, routing the response to the wrong HTTP stream.**What is affected:** All request types — `tools/call`, `resources/read`, `prompts/get`, etc. No server-initiated features are required to trigger this.**Conditions:** - A single `StreamableHTTPServerTransport` instance is reused across multiple client requests (most common in stateless mode without `sessionIdGenerator`) - Two or more clients send requests concurrently - Clients generate overlapping JSON-RPC message IDs (the SDK's default client uses an incrementing counter starting at 0)#### Issue 2: Server/Protocol re-use**What happens:** When a single `McpServer` (or `Server`) instance is `connect()`ed to multiple transports (one per client), the Protocol's internal `this._transport` reference is silently overwritten. The final response to a request is routed correctly (the Protocol captures the transport reference at request time), but any **server-to-client messages sent during request handling** use the shared `this._transport` reference, which may point to a different client's transport.**What is affected:** This depends on what features your server uses:- **Final responses** (the return value from a tool/resource/prompt handler): Affected in most cases. The Protocol captures this._transport at [request-handling time](https://github.com/modelcontextprotocol/typescript-sdk/blob/main/packages/core/src/shared/protocol.ts#L760), not the transport that delivered the request. This means: - If a request is already in-flight when a second connect() occurs (i.e., the request arrived before the transport was overwritten), the captured reference is correct and the response routes properly. - If a request arrives on the old transport after a second connect() has overwritten this._transport, the captured reference points to the new transport, and the response is mis-routed. The requesting client will time out. - **Progress notifications** sent during tool execution via `sendNotification`: **Affected.** These are dispatched through `this._transport`. When the transport has been overwritten and message IDs collide on the new transport, notifications are routed to the wrong client's HTTP stream. - **Sampling** (`createMessage`) and **elicitation** requests sent during tool execution via `sendRequest`: **Affected.** Same mechanism — the request is sent to the wrong client. - **Spontaneous server-initiated notifications** (outside any request handler): **Affected.** These are sent to whichever client's transport was most recently connected.**Conditions:** - A single `McpServer`/`Server` instance is `connect()`ed to multiple transports across requests or sessions - Two or more clients connect concurrently - For in-request notifications/requests: message ID collision on the other transport is required for silent data leaking (the SDK's default client uses an incrementing counter starting at 0). Without collision, the transport will throw an error rather than misroute. - For spontaneous notifications: no collision needed, messages are always sent to the last-connected client's

Weakness type: CWE-362

Use this record in your own tools

Get this record as JSON

curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-25536

For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker

The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 3 Dec 2026. Read the vendor advisory before changing a production system.