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
- mcp >= 1.8.0, < 1.30.0, fixed in 1.30.0
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.5%
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 · 61 tracked dependents
Topics
Related items
- HighCVE-2026-86063: Claude Code is an agentic coding tool. Prior to 2.1.179, the Claude Code and Claude Desktop plugin installation flow…Same vendor · NVD/CVE Database
- MediumCVE-2026-107430: VideoWhisper Site Manager for ChatGPT, Claude, Codex missing authorization checkSame vendor · NVD/CVE Database
- HighCVE-2026-101998: Docker Sandboxes fail open when masking credentials in proxy responsesSame vendor · NVD/CVE Database
- HighCVE-2026-103435: Claude Code symlink race condition allows writes outside project directorySame vendor · NVD/CVE Database
- HighGHSA-6qxp-vccf-f47h: MCP TypeScript SDK: OAuth client could send credentials to an authorization server chosen by the MCP serverSame vendor · GitHub Advisory Database