GHSA-84m7-p3x7-pcfv: MCP Python SDK: Unbounded Session Accumulation in StreamableHTTP Transport Enables Resource Exhaustion
- Identifiers
- CVE-2026-59951GHSA-84m7-p3x7-pcfv
- Published
- Record updated
- Affected
- mcp >= 2.0.0, < 2.2.0, fixed in 2.2.0, released September 7, 2026, 38 days before disclosure
- mcp >= 1.8.0, < 1.30.0, fixed in 1.30.0, released September 7, 2026, 38 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.6%
Summary
The MCP Python SDK's Streamable HTTP transport in stateful mode, the default, never reclaimed session state in affected versions 1.8.0 through 1.29.1 and 2.0.0 through 2.1.1. Sessions did not expire, DELETE left entries registered, and refused sessions kept running tasks, so any client that could reach the endpoint could grow server memory without bound until a restart.
Mitigation
Upgrade to mcp 1.30.0 (1.x) or 2.2.0 (2.x) or later, which add session_idle_timeout (default 1800 seconds) and max_sessions (default 10000) and discard sessions as soon as they end. If you cannot upgrade yet, pass stateless_http=True (1.12.0 or later) where no per-session state is needed, or restrict who can reach the endpoint.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- mcpPyPILLM dependency since 2024-11-20 · 57 tracked dependents
Topics
Related items
- HighGHSA-qx49-fqc8-xw99: Model Context Protocol Python SDK: OAuth client could send credentials to an authorization server chosen by the MCP serverSame vendor · GitHub Advisory Database
- HighCVE-2026-88968: Claude Code Edit tool symlink race overwrites files outside workspace on macOSSame vendor · NVD/CVE Database
- HighCVE-2026-88066: Claude Desktop on Windows git.exe execution via search pathSame vendor · NVD/CVE Database
- HighCVE-2026-62331: praktor path traversal via Telegram document upload filenamesSame vendor · NVD/CVE Database
- MediumGHSA-w4fh-qvv9-3v23: Model Context Protocol Python SDK: Server bearer-token authentication accepts tokens issued for a different resource serverSame vendor · GitHub Advisory Database