Model Context Protocol (MCP) Python SDK does not enable DNS rebinding protection by default
CVE-2025-66416 · GHSA-9h52-p55h-vw2f · published 2025-12-02 · updated 2026-07-16
- Severity
- High
- CVSS score
- 7.6
- Chance of exploitation (EPSS)
- 0.54%
- Fixed in
- 1.23.0
- Exploitation No known exploitation
- Automatable No
- Technical impact Total
- CISA SSVC
The Model Context Protocol (MCP) Python SDK does not enable DNS rebinding protection by default for HTTP-based servers. When an HTTP-based MCP server is run on localhost without authentication using FastMCP with streamable HTTP or SSE transport, and has not configured TransportSecuritySettings, a malicious website could exploit DNS rebinding to bypass same-origin policy restrictions and send requests to the local MCP server. This could allow an attacker to invoke tools or access resources exposed by the MCP server on behalf of the user in those limited circumstances. Note that running HTTP-based MCP servers locally without authentication is not recommended per MCP security best practices.
Upgrade mcp to 1.23.0 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| mcp | PyPI | < 1.23.0 | 1.23.0 |
9 registered MCP servers install an affected version today, by the dependency versions a fresh install resolves.
- com.cyberspf/mcpmcp@1.9.4
- io.github.abhichandra21/promptheusmcp@1.12.4
- io.github.AdonaiVera/fiftyone-mcp-servermcp@0.9.1
- io.github.AndreySukhanov/summarix-telegrammcp@1.12.4
- io.github.cr7258/elasticsearch-mcp-servermcp@1.9.2
- io.github.domdomegg/time-mcp-pypimcp@1.13.1
- io.github.kushknows/weather-mcp-servermcp@1.13.1
- io.github.sellisd/mcp-unitsmcp@1.15.0
- io.github.thomasxm/crowdsentinel-mcp-servermcp@1.9.2
- CriticalLiteLLM has SQL Injection in Proxy API key verificationlitellmExploited
- Criticaln8n Vulnerable to Remote Code Execution via Expression Injectionn8n, n8nExploited
- HighLiteLLM has a sandbox escape in custom-code guardraillitellmExploited
- HighLangflow affected by Remote Code Execution via validate_code() exec()langflowExploited
- CriticalJupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routesjupyter-mcp-server
- Criticalmem0ai Databricks vector store vulnerable to SQL injectionmem0ai
- HighModel Context Protocol Python SDK: OAuth client could send credentials to an authorization server chosen by the MCP servermcp, mcp
- HighHTTP server transports and OAuth endpoints read request bodies with no size limitmcp, mcp
- HighMCP Python SDK: Experimental task handlers allow any client to access and cancel other clients' tasksmcp
- HighMCP Python SDK: HTTP transports serve session requests without verifying the authenticated principalmcp
- HighMCP Python SDK: WebSocket server transport does not support Host/Origin validationmcp
- HighMCP Python SDK vulnerability in the FastMCP Server causes validation error, leading to DoSmcp
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.