MCP Python SDK has Unhandled Exception in Streamable HTTP Transport, Leading to Denial of Service
High severity
GitHub Reviewed
Published
Jul 4, 2025
in
modelcontextprotocol/python-sdk
•
Updated Jul 7, 2025
Description
Published to the GitHub Advisory Database
Jul 4, 2025
Reviewed
Jul 4, 2025
Published by the National Vulnerability Database
Jul 4, 2025
Last updated
Jul 7, 2025
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.
References