# CVE-2026-59951: MCP Python SDK: Unbounded Session Accumulation in StreamableHTTP Transport Enables Resource Exhaustion

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.50%, higher than 44% of CVEs (2026-12-01)
- Published: 2026-10-14T16:22:31.653Z
- Modified: 2026-10-16T16:00:33.533Z
- Also known as: GHSA-84m7-p3x7-pcfv
- Weaknesses: CWE-400, CWE-770, CWE-772
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- modelcontextprotocol python-sdk: >= 1.8.0, < 1.30.0; >= 2.0.0, < 2.2.0
- mcp (PyPI): from 1.8.0 before 1.30.0; from 2.0.0 before 2.2.0

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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: CVSS:3.1 7.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-84m7-p3x7-pcfv> (web)
- <https://github.com/modelcontextprotocol/python-sdk/pull/3395> (web)
- <https://github.com/modelcontextprotocol/python-sdk/pull/3426> (web)
- <https://github.com/modelcontextprotocol/python-sdk/commit/92120b4b0f50385af096592d7cee932fc1d994e7> (web)
- <https://github.com/modelcontextprotocol/python-sdk/commit/d2290ca3434731b68ea3e2270bc06a6e6575931b> (web)
- <https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.30.0> (web)
- <https://github.com/modelcontextprotocol/python-sdk/releases/tag/v2.2.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59951> (advisory)
- <https://github.com/modelcontextprotocol/python-sdk> (package)

## Sources

- CVE List: [CVE-2026-59951](https://www.cve.org/CVERecord?id=CVE-2026-59951), CVE Terms of Use, modified 2026-10-15
- GitHub Advisory Database: [GHSA-84m7-p3x7-pcfv](https://github.com/advisories/GHSA-84m7-p3x7-pcfv), CC-BY-4.0, modified 2026-10-15
- NVD: [CVE-2026-59951](https://nvd.nist.gov/vuln/detail/CVE-2026-59951), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-59951 · Whole record: https://cve.day/CVE-2026-59951.json · Rebuilt by cve.day 2026-11-25T22:59:44.748Z
