Skip to content
OpenAdvisories
Medium · 6.9 CVE-2026-59951 EUVD-2026-101452GHSA-84m7-p3x7-pcfv

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

Published Oct 14, 2026 · Updated Oct 15, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
modelcontextprotocol python-sdk >= 1.8.0, < 1.30.0, >= 2.0.0, < 2.2.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed headroom 0.42.0-1.1 openSUSE-SU-2026:12484-1
openSUSE Tumbleweed python-mcp 1.30.0-1.1 openSUSE-SU-2026:12475-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling open-webui 0.12.3-r1 —
Wolfi rolling semgrep 1.181.0-r4 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI mcp >= 1.8.0, < 1.30.0 1.30.0 GHSA-84m7-p3x7-pcfv
PyPI mcp >= 2.0.0, < 2.2.0 2.2.0 GHSA-84m7-p3x7-pcfv

Advisories 2

References