Medium severity · published Oct 14, 2026
CVE-2026-59951
MCP Python SDK: Unbounded Session Accumulation in StreamableHTTP Transport Enables Resource Exhaustion
6.9
CVSS
0.5%
EPSS
No
On KEV
Description
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.
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 40% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PY
python-sdk · modelcontextprotocol
>= 1.8.0, < 1.30.0; >= 2.0.0, < 2.2.0 · source: vendor
Affected product
PY
python-sdk
modelcontextprotocol
More from python-sdk
8.7
CVE-2025-53366
MCP SDK Vulnerable to FastMCP Server Validation Error, Leading to Denial of Service
8.7
CVE-2025-53365
MCP Python SDK has Unhandled Exception in Streamable HTTP Transport ,Leading to Denial of Service
8.1
CVE-2026-59950
MCP Python SDK: WebSocket server transport does not support Host/Origin validation
8.1
CVE-2025-66416
DNS Rebinding Protection Disabled by Default in Model Context Protocol Python SDK for Servers Running on Localhost
7.6
CVE-2026-52870
MCP Python SDK: Experimental task handlers allow any client to access and cancel other clients' tasks