CVE-2026-59951 json
MCP Python SDK: Unbounded Session Accumulation in StreamableHTTP Transport Enables Resource Exhaustion
published 2026-10-14 26 d ago modified 2026-10-16 24 d ago also EUVD-2026-101452 , GHSA-84m7-p3x7-pcfv
- cvss
- 7.5
- version 3.1, GitHub
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 39%
- public exploits
- 0
- none known
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.
Patch / fix
- pypi mcp 1.30.0, 2.2.0
- lfprojects mcp_python_sdk 1.30.0, 2.2.0
- headroom openSUSE Tumbleweed 0.42.0-1.1
- python-mcp openSUSE Tumbleweed 1.30.0-1.1
opensuse advisories openSUSE-SU-2026:12484-1openSUSE-SU-2026:12475-1
- github.com/modelcontextprotocol/python-sdk@92120b4 commit
- github.com/modelcontextprotocol/python-sdk@d2290ca commit
- github.com/modelcontextprotocol/python-sdk#3395 pull request
- github.com/modelcontextprotocol/python-sdk#3426 pull request
- github.com/modelcontextprotocol/python-sdk/releases/tag/v1.30.0 release
- github.com/modelcontextprotocol/python-sdk/releases/tag/v2.2.0 release
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-59951 updated cvss 7.5
mcp: mcp: Denial of Service via session memory exhaustion in streamable HTTP servers
-
Red Hat Ansible Automation Orchestrator 2026 ansible-automation-platform/automation-orchestrator-backend-rhel9 Red Hat Exploit Intelligence exploit-intelligence/vulnerability-analysis-rhel9 Red Hat Lightspeed Core lightspeed-core/rag-tool-cpu-rhel9, lightspeed-core/lightspeed-stack-rhel9, lightspeed-core/rag-tool-cuda-12.9-rhel9 Red Hat Migration Toolkit for Applications 8 mta/mta-solution-server-rhel9 Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-service-api-rhel9, openshift-lightspeed/lightspeed-agentic-sandbox-rhel9affected: no fix available
-
Red Hat AI Inference Server rhaii/vllm-tpu-rhel9, rhaii/vllm-neuron-rhel9affected: no fix planned “Will not fix”
-
Red Hat Ansible Automation Platform 2 ansible-automation-platform-26/mcp-tools-rhel9, ansible-automation-platform-27/mcp-tools-rhel9, ansible-automation-platform-26/lightspeed-chatbot-rhel9, ansible-automation-platform-27/lightspeed-chatbot-rhel9 Red Hat Enterprise Linux AI (RHEL AI) 3 rhelai3/bootc-cuda-rhel9, rhelai3/bootc-rocm-rhel9, rhelai3/bootc-gaudi-rhel9, rhelai3/bootc-aws-cuda-rhel9, rhelai3/bootc-gcp-cuda-rhel9, rhelai3/bootc-azure-cuda-rhel9, +1 more Red Hat Enterprise Linux command line assistant rhel-cla/rhel-knowledge-bridge-rhel10 Red Hat OpenShift AI (RHOAI) rhoai/odh-ogx-core-rhel9, rhoai/odh-feature-server-rhel9, rhoai/odh-llm-d-kv-cache-rhel9, rhoai/odh-llama-stack-core-rhel9, rhoai/odh-th-torch-cuda-py312-rhel9, rhai-early-access/docling-serve-cuda-rhel9, +2 more Red Hat OpenShift Virtualization 4 container-native-virtualization/ocp-virt-validation-checkup-rhel9affected: no fix available
-
Red Hat AI Inference Server 3.5 rhaii/vllm-cpu-rhel9 1793444554, rhaii/vllm-cuda-rhel9 1793444600, rhaii/vllm-rocm-rhel9 1793444456, rhaii/vllm-gaudi-rhel9 1793444510, rhaii/vllm-spyre-rhel9 1793444409fixed: vendor fix RHSA-2026:94702
-
Red Hat OpenShift AI 3.4 rhoai/odh-kserve-router-rhel9 1792688864fixed: vendor fix RHSA-2026:92510
-
Red Hat Satellite 6.18 satellite/foreman-mcp-server-rhel9 1793272276fixed: vendor fix RHSA-2026:92667
-
Red Hat Satellite 6.19 satellite/foreman-mcp-server-rhel9 1793272279fixed: vendor fix RHSA-2026:92666
-
Red Hat AI Inference Server rhaiis/vllm-cpu-rhel9, rhaiis/vllm-tpu-rhel9, rhaiis/vllm-cuda-rhel9, rhaiis/vllm-rocm-rhel9not affected: vulnerable code not present
show 2 moreshow fewer
-
Red Hat OpenShift AI (RHOAI) rhoai/odh-vllm-gaudi-rhel9, rhoai/odh-kserve-agent-rhel9, rhoai/odh-kserve-controller-rhel9, rhoai/odh-openvino-model-server-rhel9not affected: component not present
-
Red Hat OpenShift AI 3.4 rhoai/odh-cli-rhel9 1792722177, rhoai/rhai-cli-rhel9 1792722177, rhoai/odh-automl-rhel9 1792697253, rhoai/odh-mlflow-rhel9 1793002327, rhoai/odh-autorag-rhel9 1793265800, rhoai/odh-trainer-rhel9 1792817113, +99 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 25 d ago
Exploit prediction
0.46% chance of exploitation in the next 30 days, higher than 39% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 6.9 | 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 |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CNA | 4.0 | 6.9 | 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 |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | mcp | >=1.8.0, <1.30.0 >=2.0.0, <2.2.0 |
1.30.0 2.2.0 |
Affected products
- modelcontextprotocol python-sdk
Classification
References
-
github.com
/modelcontextprotocol/python-sdk/pull/3395
web
-
github.com
/modelcontextprotocol/python-sdk/pull/3426
web
-
github.com
/modelcontextprotocol/python-sdk/commit/92120b4b0f50385af096592d7cee932fc1d994e7
web
-
github.com
/modelcontextprotocol/python-sdk/commit/d2290ca3434731b68ea3e2270bc06a6e6575931b
web
-
github.com
/modelcontextprotocol/python-sdk/security/advisories/GHSA-84m7-p3x7-pcfv
web
-
github.com
/modelcontextprotocol/python-sdk/releases/tag/v1.30.0
web
-
github.com
/modelcontextprotocol/python-sdk/releases/tag/v2.2.0
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-59951
advisory
-
github.com
/modelcontextprotocol/python-sdk
package
Sources
- CVE List CVE-2026-59951
- GitHub Advisory GHSA-84m7-p3x7-pcfv
- NVD CVE-2026-59951
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.