CVE-2025-53365: MCP Python SDK has Unhandled Exception in Streamable HTTP Transport, Leading to Denial of Service
If a client deliberately triggers an exception after establishing a streamable HTTP session, this can lead to an uncaught ClosedResourceError on the server side, causing the server to crash and requiring a restart to restore service. Impact may vary depending on the deployment conditions, and presence of infrastructure-level resilience measures. Thank you to Rich Harang for reporting this issue.
Published Jul 4, 2025 · Updated Jul 16, 2026
Affected packages
mcp
- Ecosystem
- PyPI
- Affected
- < 1.10.0
- Fixed in
- 1.10.0
- Check
pip show mcp
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
If a client deliberately triggers an exception after establishing a streamable HTTP session, this can lead to an uncaught ClosedResourceError on the server side, causing the server to crash and requiring a restart to restore service. Impact may vary depending on the deployment conditions, and presence of infrastructure-level resilience measures.
Thank you to Rich Harang for reporting this issue.
Credited to rharang.
References
- https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-j975-95f5-7wqh
- https://github.com/modelcontextprotocol/python-sdk/pull/967
- https://github.com/modelcontextprotocol/python-sdk/commit/7b420656de48cfdb90b39eb582e60b6d55c2f891
- https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.10.0
- https://nvd.nist.gov/vuln/detail/CVE-2025-53365
- https://github.com/advisories/GHSA-j975-95f5-7wqh
- https://github.com/modelcontextprotocol/python-sdk
- https://github.com/pypa/advisory-database/tree/main/vulns/mcp/PYSEC-2026-1618.yaml
- https://pypi.org/project/mcp
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More MCP Python SDK vulnerabilities
All MCP Python SDK entriesCVE-2026-59951
MCP Python SDK: Unbounded Session Accumulation in StreamableHTTP Transport Enables Resource Exhaustion
medium7.5Oct 15, 2026CVE-2026-52869
MCP Python SDK: HTTP transports serve session requests without verifying the authenticated principal
high7.1Jul 16, 2026CVE-2026-52870
MCP Python SDK: Experimental task handlers allow any client to access and cancel other clients' tasks
high7.6Jul 16, 2026CVE-2026-59950
MCP Python SDK: WebSocket server transport does not support Host/Origin validation
high7.6Jul 16, 2026CVE-2025-66416
Model Context Protocol (MCP) Python SDK does not enable DNS rebinding protection by default
high7.6Dec 2, 2025CVE-2025-53366
MCP Python SDK vulnerability in the FastMCP Server causes validation error, leading to DoS
high8.7Jul 4, 2025
