All CVEs / modelcontextprotocol
CVE-2026-59951modelcontextprotocol python-sdk
Medium 6.9 No auth needed
Follow: this CVE · modelcontextprotocol · modelcontextprotocol python-sdk We alert you by email or Slack (account required).
- Priority
- 56
- CVSS 4.0
- 6.9
- EPSS
- —
- Auth required
- No
- Published
- Oct 14, 2026
- Updated
- Oct 16, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
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.
What to do
- Apply the vendor's security update for python-sdk.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | mcp |
≥ 1.8.0 < 1.30.0 |
1.30.0 |
pip install "mcp>=1.30.0" |
| PyPI | mcp |
≥ 2.0.0 < 2.2.0 |
2.2.0 |
pip install "mcp>=2.2.0" |
Per OSV / GitHub Advisories (GHSA-84m7-p3x7-pcfv). Check the version in your lockfile before upgrading.
Affected products
- modelcontextprotocol · python-sdk
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- headroom-0.42.0-1.1 on GA media · SUSE · openSUSE-SU-2026:12484-1 · Nov 8, 2026 Medium
- python313-mcp-1.30.0-1.1 on GA media · SUSE · openSUSE-SU-2026:12475-1 · Nov 6, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.