Skip to main content
← All vulnerabilities
CVE-2026-59951GHSA-84M7-P3X7-PCFV

MCP Python SDK: Unbounded Session Accumulation in StreamableHTTP Transport Enables Resource Exhaustion

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.30.0, 2.2.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • modelcontextprotocol python-sdk

    From 1.8.0 · fixed in 1.30.0; From 2.0.0 · fixed in 2.2.0

  • mcpPyPI

    From 1.8.0 · fixed in 1.30.0

  • mcpPyPI

    From 2.0.0 · fixed in 2.2.0

References 7

GitHub · modelcontextprotocol/python-sdk