PatchSiren cyber security CVE debrief
CVE-2026-59951 modelcontextprotocol CVE debrief
A vulnerability in the MCP Python SDK allows for unbounded session accumulation in StreamableHTTP transport, enabling resource exhaustion. Affected versions include 1.8.0 through 1.29.1 and 2.0.0 through 2.1.1. The issue arises when a Streamable HTTP server operates in stateful mode, which is the default setting. This mode does not reclaim session state, leading to unlimited session accumulation. Clients that can reach the endpoint can cause server memory growth without bound using short requests. The only recovery is a server restart.
- Vendor
- modelcontextprotocol
- Product
- mcp
- CVSS
- MEDIUM 6.9
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-10-15
- Original CVE updated
- 2026-10-15
- Advisory published
- 2026-10-15
- Advisory updated
- 2026-10-15
Who should care
Defenders managing MCP Python SDK servers, especially those using Streamable HTTP in stateful mode with untrusted clients, should assess exposure and prioritize remediation. This includes reviewing current server configurations, verifying client trust levels, and monitoring server memory usage. Additionally, defenders should consider the potential impact on specific deployments and perform vulnerability assessments to identify potentially exposed assets. A
Why it matters
CVE-2026-59951 allows for resource exhaustion in MCP Python SDK servers using StreamableHTTP in stateful mode. Defenders should assess exposure, especially if untrusted clients can reach the endpoint, and prioritize upgrading to fixed versions.
- Resource exhaustion through memory growth without bound.
- Potential for denial of service due to server restart requirement.
- Need for verification of current server configurations and client trust levels.
- Priority for upgrading to fixed versions to prevent exploitation.
Technical summary
The MCP Python SDK is vulnerable to unbounded session accumulation in StreamableHTTP transport, allowing for resource exhaustion. This occurs in stateful mode (default) where sessions do not expire and accumulate without limit. Affected versions are 1.8.0 through 1.29.1 and 2.0.0 through 2.1.1. The issue arises when a Streamable HTTP server operates in stateful mode, which is the default setting. This mode does not reclaim session state, leading to unlimited session accumulation. Clients that can reach the endpoint can cause server memory growth without bound using short requests. The only recovery is a server restart. To address this vulnerability, defenders should prioritize upgrading to mcp 1.30.0 (for 1.x)
Defensive priority
Defenders should prioritize upgrading to mcp 1.30.0 (for 1.x) or 2.2.0 (for 2.x) or later. Immediate action is required for servers running in stateful mode with untrusted clients.
Recommended defensive actions
- Upgrade to mcp 1.30.0 (for 1.x) or 2.2.0 (for 2.x) or later.
- Review and adjust server configurations to ensure stateful mode is not used with untrusted clients.
- Monitor server memory usage and implement compensating controls to mitigate potential resource exhaustion.
- Perform vulnerability assessment to identify potentially exposed assets.
- Review relevant monitoring, detection, and logs for exposed assets that need extra review.
- Track exceptions, retest remediated assets, and close the item only after evidence is documented.
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.
Evidence notes
The vulnerability details are based on the provided source corpus from osv_dev, which includes information from the MCP Python SDK GitHub repository and the CVE Program record. The source item provides details on the vulnerability, and defenders should verify the current server configurations and client trust levels. The CVE Program record and NVD detail page offer additional context. However, the exact scope of affected systems and potential impact on specific deployments remains limited by the information available in the source. To
Sources and references
Verified primary and authoritative sources
-
CVE-2026-59951 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-59951
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-59951 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-59951
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
MCP Python SDK: Unbounded Session Accumulation in StreamableHTTP Transport Enables Resource Exha
Unverified legacy reference
URL: https://storage.googleapis.com/osv-vulnerabilities/PyPI/GHSA-84m7-p3x7-pcfv.json
osv_dev
-
Source reference
Unverified legacy reference
URL: https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-84m7-p3x7-pcfv
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/modelcontextprotocol/python-sdk/pull/3395
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/modelcontextprotocol/python-sdk/pull/3426
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/modelcontextprotocol/python-sdk/commit/92120b4b0f50385af096592d7cee932fc1d994e7
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/modelcontextprotocol/python-sdk/commit/d2290ca3434731b68ea3e2270bc06a6e6575931b
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/modelcontextprotocol/python-sdk
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.30.0
Supplemental source
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.