VDB
KO

PYSEC-2026-1618

MCP Python SDK has Unhandled Exception in Streamable HTTP Transport, Leading to Denial of Service

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI / mcp
Introduced in: 0 Fixed in: 1.10.0
Fix pip install --upgrade 'mcp>=1.10.0'

References