CVE-2026-59951: MCP Python SDK: Unbounded Session Accumulation in StreamableHTTP Transport Enables Resource Exhaustion
Vulnerability summary
CVE-2026-59951 is a medium (CVSS 6.9) Uncontrolled Resource Consumption vulnerability in modelcontextprotocol python-sdk. EPSS estimates a 0.50% chance of exploitation in the next 30 days, higher than 44.6% of scored vulnerabilities.
Not severe (CVSS 6.9, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 14-10-2026PublishedVulnerability first disclosed.
- 15-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 5 sources · 2 versions- NVDNIST6.9MediumCVSS: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
- OSV · PypiEcosystem advisory · calculated6.9MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- OSV · WolfiEcosystem advisory · calculated6.9MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated6.9MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
EPSS trend
Probability
0.50%
Chance of exploitation in the next 30 days
Percentile
45%
Versus all other CVEs
30-day change
Increase +0.04 pp
From 0.46% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-400Uncontrolled Resource ConsumptionThe product does not properly control the allocation and maintenance of a limited resource.
- CWE-772Missing Release of Resource after Effective LifetimeThe product does not release a resource after its effective lifetime has ended, i.e., after the resource is no longer needed.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard5 products
- nemo-gymAll versions (No fix recorded) | < 0.5.0_rc0_git20260729-r3
- nemo-rl-cuda-13.0-gymAll versions (No fix recorded) | < 0.7.0-r9
- nemo-rl-cuda-13.0-vllmAll versions (No fix recorded)
- open-webuiAll versions (No fix recorded) | < 0.12.3-r1
- semgrepAll versions (No fix recorded) | < 1.181.0-r4
Wolfi2 products
- open-webuiAll versions (No fix recorded) | < 0.12.3-r1
- semgrepAll versions (No fix recorded) | < 1.181.0-r4
Modelcontextprotocol1 product
- python-sdk≥ 1.8.0, < 1.30.0 | ≥ 2.0.0, < 2.2.0
Opensuse1 product
- headroom&distro=openSUSE Tumbleweed< 0.42.0-1.1
PyPI1 product
- mcp≥ 1.8.0, < 1.30.0 | ≥ 2.0.0, < 2.2.0
5 vendors · 10 products
References
11 links- github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-84m7-p3x7-pcfvX Refsource CONFIRMWEBAdvisory