Mcp Python Sdk
Monthly
DNS rebinding protection in the Model Context Protocol Python SDK (PyPI package `mcp`) is not enabled by default, so FastMCP servers using streamable HTTP or SSE transport that are bound to localhost and run without authentication can be reached from a malicious web page and tricked into invoking their exposed tools on the user's behalf. Only a narrow, non-recommended deployment is affected - servers using stdio transport, servers requiring authentication, and servers that explicitly configure TransportSecuritySettings are not exploitable - and successful abuse additionally requires the victim to browse an attacker-controlled site and the attacker to complete a DNS rebinding sequence. Publicly available exploit code exists (a proof-of-concept gist) and several Red Hat errata reference the flaw, though EPSS is low at roughly 0.03% and there is no KEV listing indicating active exploitation; the vendor-released patch is version 1.23.0.
DNS rebinding protection in the Model Context Protocol Python SDK (PyPI package `mcp`) is not enabled by default, so FastMCP servers using streamable HTTP or SSE transport that are bound to localhost and run without authentication can be reached from a malicious web page and tricked into invoking their exposed tools on the user's behalf. Only a narrow, non-recommended deployment is affected - servers using stdio transport, servers requiring authentication, and servers that explicitly configure TransportSecuritySettings are not exploitable - and successful abuse additionally requires the victim to browse an attacker-controlled site and the attacker to complete a DNS rebinding sequence. Publicly available exploit code exists (a proof-of-concept gist) and several Red Hat errata reference the flaw, though EPSS is low at roughly 0.03% and there is no KEV listing indicating active exploitation; the vendor-released patch is version 1.23.0.