CVE-2026-59951 MCP Python SDK: Unbounded Session Accumulation in StreamableHTTP Transport Enables Resource Exhaustion
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- Red Hat
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.
Upgrade path
42 packages: 1 fixed, 40 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/ansible-automation-platform-26/lightspeed-chatbot-rhel9:1794598901(Red Hat ansible_automation_platform 2.6 el9) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-26/mcp-tools-rhel9:1794593730(Red Hat ansible_automation_platform 2.6 el9) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-27/lightspeed-chatbot-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-27/mcp-tools-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform/automation-orchestrator-backend-rhel9(Red Hat ansible_automation_orchestrator 2026.8) | All versions | No fix listed | No fix yet |
| redhat/container-native-virtualization/ocp-virt-validation-checkup-rhel9(Red Hat container_native_virtualization 4) | All versions | No fix listed | No fix yet |
| redhat/exploit-intelligence/vulnerability-analysis-rhel9:1794542867(Red Hat exploit_intelligence 3.1 el9) | All versions | No fix listed | No fix yet |
| redhat/lightspeed-core/lightspeed-stack-rhel9(Red Hat lightspeed_core) | All versions | No fix listed | No fix yet |
| redhat/lightspeed-core/rag-tool-cpu-rhel9(Red Hat lightspeed_core) | All versions | No fix listed | No fix yet |
| redhat/lightspeed-core/rag-tool-cuda-12.9-rhel9(Red Hat lightspeed_core) | All versions | No fix listed | No fix yet |
| redhat/mta/mta-solution-server-rhel9(Red Hat migration_toolkit_applications 8) | All versions | No fix listed | No fix yet |
| redhat/openshift-lightspeed/lightspeed-agentic-sandbox-rhel9(Red Hat openshift_lightspeed 1) | All versions | No fix listed | No fix yet |
| redhat/openshift-lightspeed/lightspeed-service-api-rhel9(Red Hat openshift_lightspeed 1) | All versions | No fix listed | No fix yet |
| redhat/rhai-early-access/docling-serve-cuda-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhaii/vllm-cpu-rhel9:1793444554(Red Hat ai_inference_server 3.5 el9) | All versions | No fix listed | No fix yet |
| redhat/rhaii/vllm-cuda-rhel9:1793444600(Red Hat ai_inference_server 3.5 el9) | All versions | No fix listed | No fix yet |
| redhat/rhaii/vllm-gaudi-rhel9:1793444510(Red Hat ai_inference_server 3.5 el9) | All versions | No fix listed | No fix yet |
| redhat/rhaii/vllm-neuron-rhel9(Red Hat ai_inference_server 3) | All versions | No fix listed | No fix yet |
| redhat/rhaii/vllm-rocm-rhel9:1793444456(Red Hat ai_inference_server 3.5 el9) | All versions | No fix listed | No fix yet |
| redhat/rhaii/vllm-spyre-rhel9:1793444409(Red Hat ai_inference_server 3.5 el9) | All versions | No fix listed | No fix yet |
| redhat/rhaii/vllm-tpu-rhel9(Red Hat ai_inference_server 3) | All versions | No fix listed | No fix yet |
| redhat/rhel-cla/rhel-knowledge-bridge-rhel10(Red Hat rhel_cla 1) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-aws-cuda-rhel9:1793973314(Red Hat enterprise_linux_ai 3.5 el9) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-azure-cuda-rhel9:1793973314(Red Hat enterprise_linux_ai 3.5 el9) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-azure-rocm-rhel9:1793973314(Red Hat enterprise_linux_ai 3.5 el9) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-cuda-rhel9:1793914518(Red Hat enterprise_linux_ai 3.5 el9) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-gaudi-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-gcp-cuda-rhel9:1793973312(Red Hat enterprise_linux_ai 3.5 el9) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-rocm-rhel9:1793914504(Red Hat enterprise_linux_ai 3.5 el9) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/disk-image-cuda-rhel9:1793995863(Red Hat enterprise_linux_ai 3.5 el9) | All versions | No fix listed | No fix yet |
… and 12 more packages.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi mcp(PyPI) | >= 1.8.0, < 1.30.0 | 1.30.0 |
| pypi mcp(PyPI) | = 1.10.0 | No fix listed |
| pypi mcp(PyPI) | = 1.10.1 | No fix listed |
| pypi mcp(PyPI) | = 1.11.0 | No fix listed |
| pypi mcp(PyPI) | = 1.12.0 | No fix listed |
| pypi mcp(PyPI) | = 1.12.1 | No fix listed |
| pypi mcp(PyPI) | = 1.12.2 | No fix listed |
| pypi mcp(PyPI) | = 1.12.3 | No fix listed |
| pypi mcp(PyPI) | = 1.12.4 | No fix listed |
| pypi mcp(PyPI) | = 1.13.0 | No fix listed |
| pypi mcp(PyPI) | = 1.13.1 | No fix listed |
| pypi mcp(PyPI) | = 1.14.0 | No fix listed |
| pypi mcp(PyPI) | = 1.14.1 | No fix listed |
| pypi mcp(PyPI) | = 1.15.0 | No fix listed |
| pypi mcp(PyPI) | = 1.16.0 | No fix listed |
| pypi mcp(PyPI) | = 1.17.0 | No fix listed |
| pypi mcp(PyPI) | = 1.18.0 | No fix listed |
| pypi mcp(PyPI) | = 1.19.0 | No fix listed |
| pypi mcp(PyPI) | = 1.20.0 | No fix listed |
| pypi mcp(PyPI) | = 1.21.0 | No fix listed |
| pypi mcp(PyPI) | = 1.21.1 | No fix listed |
| pypi mcp(PyPI) | = 1.21.2 | No fix listed |
| pypi mcp(PyPI) | = 1.22.0 | No fix listed |
| pypi mcp(PyPI) | = 1.23.0 | No fix listed |
| pypi mcp(PyPI) | = 1.23.1 | No fix listed |
Show 66 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi mcp(PyPI) | = 1.23.2 | No fix listed |
| pypi mcp(PyPI) | = 1.23.3 | No fix listed |
| pypi mcp(PyPI) | = 1.24.0 | No fix listed |
| pypi mcp(PyPI) | = 1.25.0 | No fix listed |
| pypi mcp(PyPI) | = 1.26.0 | No fix listed |
| pypi mcp(PyPI) | = 1.27.0 | No fix listed |
| pypi mcp(PyPI) | = 1.27.1 | No fix listed |
| pypi mcp(PyPI) | = 1.27.2 | No fix listed |
| pypi mcp(PyPI) | = 1.28.0 | No fix listed |
| pypi mcp(PyPI) | = 1.28.1 | No fix listed |
| pypi mcp(PyPI) | = 1.29.0 | No fix listed |
| pypi mcp(PyPI) | = 1.29.1 | No fix listed |
| pypi mcp(PyPI) | = 1.8.0 | No fix listed |
| pypi mcp(PyPI) | = 1.8.1 | No fix listed |
| pypi mcp(PyPI) | = 1.9.0 | No fix listed |
| pypi mcp(PyPI) | = 1.9.1 | No fix listed |
| pypi mcp(PyPI) | = 1.9.2 | No fix listed |
| pypi mcp(PyPI) | = 1.9.3 | No fix listed |
| pypi mcp(PyPI) | = 1.9.4 | No fix listed |
| pypi mcp(PyPI) | >= 2.0.0, < 2.2.0 | 2.2.0 |
| pypi mcp(PyPI) | = 2.0.0 | No fix listed |
| pypi mcp(PyPI) | = 2.0.1 | No fix listed |
| pypi mcp(PyPI) | = 2.1.0 | No fix listed |
| pypi mcp(PyPI) | = 2.1.1 | No fix listed |
| modelcontextprotocol python-sdk | = >= 1.8.0, < 1.30.0 | No fix listed |
| modelcontextprotocol python-sdk | = >= 2.0.0, < 2.2.0 | No fix listed |
| redhat/exploit-intelligence/vulnerability-analysis-rhel9:1794542867(Red Hat:exploit_intelligence:3.1::el9) | All versions | No fix listed |
| redhat/rhaii/vllm-cpu-rhel9:1793444554(Red Hat:ai_inference_server:3.5::el9) | All versions | No fix listed |
| redhat/rhaii/vllm-rocm-rhel9:1793444456(Red Hat:ai_inference_server:3.5::el9) | All versions | No fix listed |
| redhat/rhaii/vllm-spyre-rhel9:1793444409(Red Hat:ai_inference_server:3.5::el9) | All versions | No fix listed |
| redhat/rhaii/vllm-gaudi-rhel9:1793444510(Red Hat:ai_inference_server:3.5::el9) | All versions | No fix listed |
| redhat/rhaii/vllm-cuda-rhel9:1793444600(Red Hat:ai_inference_server:3.5::el9) | All versions | No fix listed |
| redhat/ansible-automation-platform-26/lightspeed-chatbot-rhel9:1794598901(Red Hat:ansible_automation_platform:2.6::el9) | All versions | No fix listed |
| redhat/ansible-automation-platform-26/mcp-tools-rhel9:1794593730(Red Hat:ansible_automation_platform:2.6::el9) | All versions | No fix listed |
| redhat/rhelai3/disk-image-cuda-rhel9:1793995863(Red Hat:enterprise_linux_ai:3.5::el9) | All versions | No fix listed |
| redhat/rhelai3/bootc-aws-cuda-rhel9:1793973314(Red Hat:enterprise_linux_ai:3.5::el9) | All versions | No fix listed |
| redhat/rhelai3/bootc-azure-cuda-rhel9:1793973314(Red Hat:enterprise_linux_ai:3.5::el9) | All versions | No fix listed |
| redhat/rhelai3/bootc-azure-rocm-rhel9:1793973314(Red Hat:enterprise_linux_ai:3.5::el9) | All versions | No fix listed |
| redhat/rhelai3/bootc-cuda-rhel9:1793914518(Red Hat:enterprise_linux_ai:3.5::el9) | All versions | No fix listed |
| redhat/rhelai3/bootc-gcp-cuda-rhel9:1793973312(Red Hat:enterprise_linux_ai:3.5::el9) | All versions | No fix listed |
| redhat/rhelai3/bootc-rocm-rhel9:1793914504(Red Hat:enterprise_linux_ai:3.5::el9) | All versions | No fix listed |
| redhat/rhoai/odh-llama-stack-core-rhel9:1794492228(Red Hat:openshift_ai:2.25::el9) | All versions | No fix listed |
| redhat/rhoai/odh-kserve-router-rhel9:1792688864(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-kserve-storage-initializer-rhel9:1793691340(Red Hat:openshift_ai:3.5::el9) | All versions | No fix listed |
| redhat/rhoai/odh-ogx-core-rhel9:1793383222(Red Hat:openshift_ai:3.5::el9) | All versions | No fix listed |
| redhat/rhoai/odh-th-torch-cuda-py312-rhel9:1793715343(Red Hat:openshift_ai:3.5::el9) | All versions | No fix listed |
| redhat/rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9:1793497091(Red Hat:openshift_ai:3.5::el9) | All versions | No fix listed |
| redhat/satellite/foreman-mcp-server-rhel9:1793272276(Red Hat:satellite:6.18::el9) | All versions | No fix listed |
| redhat/satellite/foreman-mcp-server-rhel9:1793272279(Red Hat:satellite:6.19::el9) | All versions | No fix listed |
| redhat/ansible-automation-platform/automation-orchestrator-backend-rhel9(Red Hat:ansible_automation_orchestrator:2026.8) | All versions | No fix listed |
| redhat/lightspeed-core/lightspeed-stack-rhel9(Red Hat:lightspeed_core) | All versions | No fix listed |
| redhat/lightspeed-core/rag-tool-cpu-rhel9(Red Hat:lightspeed_core) | All versions | No fix listed |
| redhat/lightspeed-core/rag-tool-cuda-12.9-rhel9(Red Hat:lightspeed_core) | All versions | No fix listed |
| redhat/mta/mta-solution-server-rhel9(Red Hat:migration_toolkit_applications:8) | All versions | No fix listed |
| redhat/openshift-lightspeed/lightspeed-agentic-sandbox-rhel9(Red Hat:openshift_lightspeed:1) | All versions | No fix listed |
| redhat/openshift-lightspeed/lightspeed-service-api-rhel9(Red Hat:openshift_lightspeed:1) | All versions | No fix listed |
| redhat/rhaii/vllm-neuron-rhel9(Red Hat:ai_inference_server:3) | All versions | No fix listed |
| redhat/rhaii/vllm-tpu-rhel9(Red Hat:ai_inference_server:3) | All versions | No fix listed |
| redhat/ansible-automation-platform-27/lightspeed-chatbot-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-27/mcp-tools-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/rhelai3/bootc-gaudi-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhel-cla/rhel-knowledge-bridge-rhel10(Red Hat:rhel_cla:1) | All versions | No fix listed |
| redhat/rhai-early-access/docling-serve-cuda-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-feature-server-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-llm-d-kv-cache-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/container-native-virtualization/ocp-virt-validation-checkup-rhel9(Red Hat:container_native_virtualization:4) | All versions | No fix listed |
References
- https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-84m7-p3x7-pcfv vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/modelcontextprotocol/python-sdk/pull/3395 patch
- https://github.com/modelcontextprotocol/python-sdk/pull/3426 patch
- https://github.com/modelcontextprotocol/python-sdk/commit/92120b4b0f50385af096592d7cee932fc1d994e7 patch
- https://github.com/modelcontextprotocol/python-sdk/commit/d2290ca3434731b68ea3e2270bc06a6e6575931b patch
- github.com product
- https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.30.0
- https://github.com/modelcontextprotocol/python-sdk/releases/tag/v2.2.0
- Red Hat CVE page vendor-advisory
- RHSA-2026:94702 patch vendor-advisory
- RHSA-2026:94709 patch vendor-advisory
- RHSA-2026:94717 patch vendor-advisory
- RHSA-2026:94721 patch vendor-advisory
- RHSA-2026:94738 patch vendor-advisory
- RHSA-2026:92510 patch vendor-advisory
- RHSA-2026:92667 patch vendor-advisory
- RHSA-2026:92666 patch vendor-advisory
- Red Hat Bugzilla 2552683 issue-tracking
- www.cve.org
- github.com
- RHSA-2026:96323 patch vendor-advisory
- RHSA-2026:96333 patch vendor-advisory
- RHSA-2026:100634 patch vendor-advisory
- RHSA-2026:95872 patch vendor-advisory
- ENISA EUVD EUVD-2026-101452 third-party-advisory
- RHSA-2026:100765 patch vendor-advisory
- RHSA-2026:102223 patch vendor-advisory