CVE-2026-59951
Published:October 14, 2026
Updated:October 15, 2026
The MCP Python SDK, called mcp on PyPI, is a Python implementation of the Model Context Protocol (MCP). From 1.8.0 until 1.30.0 and 2.2.0, stateful Streamable HTTP servers, including FastMCP, MCPServer, Server.streamable_http_app(), and StreamableHTTPSessionManager, retain session entries without an idle expiration or aggregate session-count limit. DELETE, refused opening requests, and completed sessions do not reliably discard their entries, and each entry can retain parsed initialize parameters. A client that can reach the endpoint can therefore create ordinary short requests that grow server memory without bound until restart. Stateless HTTP, stdio, and SSE transports are not affected. This issue is fixed in versions 1.30.0 and 2.2.0.
Affected Packages
mcp (CONDA):
Affected version(s) >=1.8.0 <1.30.0Fix Suggestion:
Update to version 1.30.0mcp (CONDA):
Affected version(s) >=2.0.0 <2.2.0Fix Suggestion:
Update to version 2.2.0https://github.com/modelcontextprotocol/python-sdk.git (GITHUB):
Affected version(s) >=v1.8.0 <v1.30.0Fix Suggestion:
Update to version v1.30.0https://github.com/modelcontextprotocol/python-sdk.git (GITHUB):
Affected version(s) >=v2.0.0 <v2.2.0Fix Suggestion:
Update to version v2.2.0mcp (PYTHON):
Affected version(s) >=2.0.0 <2.2.0Fix Suggestion:
Update to version 2.2.0mcp (PYTHON):
Affected version(s) >=1.8.0 <1.30.0Fix Suggestion:
Update to version 1.30.0Related Resources (10)
Do you need more information?
Contact UsCVSS v4
Base Score:
6.9
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW
Weakness Type (CWE)
EPSS
Base Score:
0.46