Race Condition Affecting @modelcontextprotocol/sdk package, versions >=1.10.0 <1.26.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (4th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-MODELCONTEXTPROTOCOLSDK-15208843
  • published5 Feb 2026
  • disclosed4 Feb 2026
  • creditArpeet Kale, Eli M

Introduced: 4 Feb 2026

CVE-2026-25536  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade @modelcontextprotocol/sdk to version 1.26.0 or higher.

Overview

@modelcontextprotocol/sdk is a Model Context Protocol implementation for TypeScript

Affected versions of this package are vulnerable to Race Condition via the reuse of a single McpServer or Server instance and transport across multiple concurrent client connections. An attacker can access response data intended for other clients by exploiting JSON-RPC message ID collisions, which causes responses to be misrouted between clients.

Note:

This is only exploitable if a server instance is shared across concurrent client sessions and clients generate overlapping message IDs.

Workaround

This vulnerability can be mitigated by creating fresh McpServer and transport instances for each request (in stateless mode) or for each session (in stateful mode).

CVSS Base Scores

version 4.0
version 3.1