CVE-2026-59951: modelcontextprotocol python-sdk · Uncontrolled Resource Consumption
Affects modelcontextprotocol python-sdkSource CVE Database V5
Not known to be exploited · CVSS 6.9 Medium : upgrade to 2.2.0 or 1.30.0 when convenient.
Data as of 27 Nov 2026, 22:51 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 42% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.2.0, 1.30.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 14 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 28 Nov 2026.
What to do
Upgrade python-sdk to 2.2.0 or 1.30.0; mcp to 1.30.0; mcp to 2.2.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| modelcontextprotocolpython-sdk | Affected
| Fixed in
|
| modelcontextprotocolpython-sdk | Affected
| Fixed in
|
PyPImcppkg:pypi/mcpOther threats | Affected
| Fixed in
|
PyPImcppkg:pypi/mcpOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade to modelcontextprotocol python-sdk version 1.30.0 or later for 1.x, or 2.2.0 or later for 2.x, where session idle timeouts, maximum session limits, and proper session cleanup are implemented. If upgrading is not immediately possible, configure the server to use stateless_http=True (available since 1.12.0) to avoid session state retention, or restrict access to trusted clients only. Adjust session_idle_timeout, max_sessions, and max_request_body_size settings to fit resource constraints on smaller hosts.
Description
CVE-2026-59951 is a medium severity vulnerability in the modelcontextprotocol python-sdk affecting versions 1.8.0 through 1.29.1 and 2.0.0 through 2.1.1. The issue involves uncontrolled resource consumption due to a Streamable HTTP server in stateful mode that never reclaims session state, allowing unlimited sessions to accumulate and consume memory. This can lead to server memory growth without bound until a restart occurs. The vulnerability is fixed in versions 1.30.0 and 2.2.0, which introduce session idle timeouts, maximum session limits, and proper session cleanup.
References
- github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-84m7-p3x7-pcfv (opens in a new tab)
- github.com/modelcontextprotocol/python-sdk/pull/3395 (opens in a new tab)
- github.com/modelcontextprotocol/python-sdk/pull/3426 (opens in a new tab)
- github.com/modelcontextprotocol/python-sdk/commit/92120b4b0f50385af096592d7cee932fc1d994e7 (opens in a new tab)
- github.com/modelcontextprotocol/python-sdk/commit/d2290ca3434731b68ea3e2270bc06a6e6575931b (opens in a new tab)
- github.com/modelcontextprotocol/python-sdk/releases/tag/v1.30.0 (opens in a new tab)
- github.com/modelcontextprotocol/python-sdk/releases/tag/v2.2.0 (opens in a new tab)