CVE-2026-59951
Last modified
CVE-2026-59951 is a medium-severity vulnerability rated 6.9/10 on the CVSS scale. 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. EPSS estimates a 0.46% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| modelcontextprotocol | python-sdk | >= 1.8.0, < 1.30.0; >= 2.0.0, < 2.2.0 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-59951?
How severe is CVE-2026-59951?
How do I fix CVE-2026-59951?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-59946Composer is a dependency Manager for the PHP language. Prior…6.1
- CVE-2026-59947Composer is a dependency Manager for the PHP language. Prior…4.7
- CVE-2026-59948Composer is a dependency Manager for the PHP language. Prior…7
- CVE-2026-59949yawkat LZ4 Java provides LZ4 compression for Java. Prior to …6.5
- CVE-2026-5995A weakness has been identified in Totolink A7100RU 7.4cu.231…9.8
- CVE-2026-59950The MCP Python SDK, called mcp on PyPI, is a Python implemen…8.1
- CVE-2026-59952Valibot helps validate data using a schema. Versions prior t…6.9
- CVE-2026-59954Apollo is a reliable configuration management system suitabl…7.5
- CVE-2026-59955Apollo is a reliable configuration management system suitabl…7.5
- CVE-2026-59956OpenImageIO is a toolset for reading, writing, and manipulat…6.1
- CVE-2026-59959SAIL is a cross-platform library for loading and saving imag…4.8
- CVE-2026-5996A security vulnerability has been detected in Totolink A7100…9.8
Are you affected by CVE-2026-59951?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
