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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | open-webui | 0.12.3-r1 | — |
| Wolfi rolling | semgrep | 1.181.0-r4 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| 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
- openSUSE-SU-2026:12484-1 headroom-0.42.0-1.1 on GA media SUSE / openSUSE Security Updates · Nov 9, 2026
- openSUSE-SU-2026:12475-1 python313-mcp-1.30.0-1.1 on GA media SUSE / openSUSE Security Updates · Nov 7, 2026
References
- https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-84m7-p3x7-pcfv
- https://github.com/modelcontextprotocol/python-sdk/pull/3395
- https://github.com/modelcontextprotocol/python-sdk/pull/3426
- https://github.com/modelcontextprotocol/python-sdk/commit/92120b4b0f50385af096592d7cee932fc1d994e7
- https://github.com/modelcontextprotocol/python-sdk/commit/d2290ca3434731b68ea3e2270bc06a6e6575931b
- https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.30.0
- https://github.com/modelcontextprotocol/python-sdk/releases/tag/v2.2.0