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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-10-14 · Modified: 2026-10-15
- Aliases: GHSA-84m7-p3x7-pcfv, CGA-qm45-j5j8-m5cp, CGA-rm37-qwx2-fvgf, CGA-wh82-3g67-m3mx, CGA-28gh-j5r7-q9f3, CGA-q547-w4j6-fhjc, CGA-qf8f-43cj-9g62, CGA-x3x9-26v7-f53x, openSUSE-SU-2026:12484-1
- Record: https://cvemate.com/vulnerability/CVE-2026-59951 · JSON: https://cvemate.com/vulnerability/CVE-2026-59951/json

## Description

```text
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.
```

## Signals

- CVSS: 6.9 medium (v4.0, CVE.org) 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
- EPSS: 0.503%, percentile 44.637%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard nemo-gym (Chainguard): All versions (No fix recorded) \| \< 0.5.0\_rc0\_git20260729-r3
- chainguard nemo-rl-cuda-13.0-gym (Chainguard): All versions (No fix recorded) \| \< 0.7.0-r9
- chainguard nemo-rl-cuda-13.0-vllm (Chainguard): All versions (No fix recorded)
- chainguard open-webui (Chainguard): All versions (No fix recorded) \| \< 0.12.3-r1
- chainguard semgrep (Chainguard): All versions (No fix recorded) \| \< 1.181.0-r4
- wolfi open-webui (Wolfi): All versions (No fix recorded) \| \< 0.12.3-r1
- wolfi semgrep (Wolfi): All versions (No fix recorded) \| \< 1.181.0-r4
- modelcontextprotocol python-sdk: ≥ 1.8.0, \< 1.30.0 \| ≥ 2.0.0, \< 2.2.0
- PyPI mcp (PyPI): ≥ 1.8.0, \< 1.30.0 \| ≥ 2.0.0, \< 2.2.0
- opensuse headroom&distro=openSUSE Tumbleweed (openSUSE): \< 0.42.0-1.1

## References

- <https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-84m7-p3x7-pcfv>
- <https://github.com/modelcontextprotocol/python-sdk/pull/3395>
- <https://github.com/modelcontextprotocol/python-sdk/pull/3426>
- <https://github.com/modelcontextprotocol/python-sdk/commit/92120b4b0f50385af096592d7cee932fc1d994e7>
- <https://github.com/modelcontextprotocol/python-sdk/commit/d2290ca3434731b68ea3e2270bc06a6e6575931b>
- <https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.30.0>
- <https://github.com/modelcontextprotocol/python-sdk/releases/tag/v2.2.0>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59951>
- <https://github.com/modelcontextprotocol/python-sdk>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59951.json>
- <https://www.suse.com/security/cve/CVE-2026-59951>

---

Data as of 2026-12-05T06:22:49.617Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
