GHSA-84m7-p3x7-pcfv
MCP Python SDK: Unbounded Session Accumulation in StreamableHTTP Transport Enables Resource Exhaustion
Published Oct 15, 2026 · Source: GitHub Advisory Database (via OSV.dev). Data collected Sat, 28 Nov 2026 19:06:22 GMT.
The facts
| Advisory id | GHSA-84m7-p3x7-pcfv |
|---|---|
| CVE | CVE-2026-59951 |
| Package | mcp (Python SDK) PyPI: mcp |
| Published | Oct 15, 2026 |
| Source severity | MODERATE |
| Our severity | medium · 50 Advisory severity: MODERATE · Confidence: GitHub Advisory Database / OSV · See the rules |
| Fix | Fixed in 2.2.0 |
| Source | GitHub Advisory Database (via OSV.dev) |
Summary AI summary
Open-source package mcp Python SDK has a resource exhaustion vulnerability due to unbounded session accumulation.
Excerpt from the source
Copied from the official record, trimmed. Read the full source before acting.
### Summary In affected versions, a Streamable HTTP server in stateful mode (the default) never reclaimed session state: - sessions did not expire; - a client `DELETE` ended the session but left its entry registered; - a session whose first request was refused stayed registered with a running task. Each session also kept its parsed `initialize` parameters, and the number of sessions was unlimited. A client that could reach the endpoint could grow server memory without bound using ordinary short requests; only a restart reclaimed it. ### Am I affected? Yes, if you serve MCP over Streamable HTTP
What to do
Update to version 2.2.0 or later to fix the issue.
Other recent advisories for this package
- GHSA-qx49-fqc8-xw99 · Nov 19, 2026 · Model Context Protocol Python SDK: OAuth client could send credentials to an authorization server chosen by the MCP server
- GHSA-w4fh-qvv9-3v23 · Oct 27, 2026 · Model Context Protocol Python SDK: Server bearer-token authentication accepts tokens issued for a different resource server
- GHSA-5h93-6whr-6q8j · Oct 27, 2026 · Model Context Protocol Python SDK: HTTP client transports followed cross-origin redirects carrying custom headers and bodies
- GHSA-rwrf-2pqf-9j8j · Oct 27, 2026 · Model Context Protocol Python SDK: Client fetched server-chosen $ref URLs while validating tool results against output schemas
This page restates a public advisory. Confirm the facts on the linked source before you act. BigBadAI is independent and not affiliated with the package authors. Data collected .