Skip to main content
VulnerabilityPublished

CVE-2026-59951: modelcontextprotocol python-sdk · Uncontrolled Resource Consumption

Affects modelcontextprotocol python-sdkSource CVE Database V5

0
Compare

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

CVSS 4.0 base score
6.9Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 14 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
modelcontextprotocolpython-sdkAffected
  • >=2.0.0 <2.2.0
Fixed in
  • 2.2.0
modelcontextprotocolpython-sdkAffected
  • >=1.8.0 <1.30.0
Fixed in
  • 1.30.0
PyPImcppkg:pypi/mcpOther threatsAffected
  • 1.8.0 – 1.29.1
  • >=1.8.0 <1.30.0
43 affected builds
Fixed in
  • 1.30.0
PyPImcppkg:pypi/mcpOther threatsAffected
  • 2.0.0 – 2.1.1
  • >=2.0.0 <2.2.0
4 affected builds
Fixed in
  • 2.2.0

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

Community reviews

Loading reviews…