Home / modelcontextprotocol / python-sdk / CVE-2026-59951
CVE-2026-59951: is it exploited, and which versions of modelcontextprotocol python-sdk are affected and fixed?
CVE-2026-59951 is a denial of service (uncontrolled resource consumption) vulnerability in modelcontextprotocol python-sdk. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 18:09 UTC). Affected: mcp from 1.8.0 before 1.30.0 and mcp from 2.0.0 before 2.2.0 (GitHub advisory GHSA-84m7-p3x7-pcfv). Fixed in 1.30.0 and 2.2.0 (GitHub advisory GHSA-84m7-p3x7-pcfv). Severity: Medium (6.9, CVSS 4.0, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 18:09 UTC, CVE record November 19, 2026, 07:06 UTC and NVD November 19, 2026, 07:06 UTC.
What is CVE-2026-59951?
MCP Python SDK: Unbounded Session Accumulation in StreamableHTTP Transport Enables Resource Exhaustion
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.
From the CVE record by GitHub_M, last updated October 15, 2026, 15:07 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| modelcontextprotocol | python-sdk | >= 1.8.0, < 1.30.0 >= 2.0.0, < 2.2.0 |
As the CVE record by GitHub_M states it, last updated October 15, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | mcp | >= 1.8.0, < 1.30.0 | 1.30.0 | GHSA-84m7-p3x7-pcfv |
| PyPI | mcp | >= 2.0.0, < 2.2.0 | 2.2.0 | GHSA-84m7-p3x7-pcfv |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated October 15, 2026. Summary: MCP Python SDK: Unbounded Session Accumulation in StreamableHTTP Transport Enables Resource Exhaustion.
How severe is CVE-2026-59951?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.9 | CVSS 4.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:N | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-59951 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, October 15, 2026)
- EPSS
- 0.50% probability of exploitation activity in the next 30 days, percentile 44.7 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-400 Uncontrolled Resource Consumption
- CWE-772 Missing Release of Resource after Effective Lifetime
- CWE-770 Allocation of Resources Without Limits or Throttling
Where are the vendor advisories and references?
- https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-84m7-p3x7-pcfv x_refsource_CONFIRM
- https://github.com/modelcontextprotocol/python-sdk/pull/3395 x_refsource_MISC
- https://github.com/modelcontextprotocol/python-sdk/pull/3426 x_refsource_MISC
- https://github.com/modelcontextprotocol/python-sdk/commit/92120b4b0f50385af096592d7cee932fc1d994e7 x_refsource_MISC
- https://github.com/modelcontextprotocol/python-sdk/commit/d2290ca3434731b68ea3e2270bc06a6e6575931b x_refsource_MISC
- https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.30.0 x_refsource_MISC
- https://github.com/modelcontextprotocol/python-sdk/releases/tag/v2.2.0 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- July 7, 2026
- Published
- October 14, 2026, 16:22 UTC
- CVE record updated
- October 15, 2026, 15:07 UTC by GitHub_M
- NVD
- Awaiting Analysis, last modified October 16, 2026, 16:00 UTC
- Last checked
- CVE list November 19, 2026, 07:06 UTC; NVD November 19, 2026, 07:06 UTC; KEV December 3, 2026, 18:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect python-sdk?
- Nov 16, 2026CVE-2026-115563 modelcontextprotocol python-sdk: data authenticity not verified
- Oct 27, 2026CVE-2026-116686 modelcontextprotocol python-sdk: server-side request forgery (SSRF)
- Oct 27, 2026CVE-2026-116685 modelcontextprotocol python-sdk: information disclosure
- Oct 27, 2026CVE-2026-116684 modelcontextprotocol python-sdk: incorrect authorization
- Oct 14, 2026CVE-2026-109527 modelcontextprotocol python-sdk: denial of service (resources allocated without limits)
- Jul 15, 2026CVE-2026-59950 modelcontextprotocol python-sdk: origin not validated
- Jul 15, 2026CVE-2026-52870 modelcontextprotocol python-sdk: missing authorization
- Jul 15, 2026CVE-2026-52869 modelcontextprotocol python-sdk: authorization bypass through a user-controlled key (IDOR)
Questions about CVE-2026-59951
Is CVE-2026-59951 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 18:09 UTC. FIRST's EPSS gives it a 0.50% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of modelcontextprotocol python-sdk are affected by CVE-2026-59951?
mcp from 1.8.0 before 1.30.0 and mcp from 2.0.0 before 2.2.0, per the GitHub advisory GHSA-84m7-p3x7-pcfv. The tables above give every range the sources list.
Which version fixes CVE-2026-59951?
1.30.0 and 2.2.0, per the GitHub advisory GHSA-84m7-p3x7-pcfv. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-59951?
Medium (6.9, CVSS 4.0, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-59951?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.