CVE-2025-66416 Details
Description
The MCP Python SDK, called `mcp` on PyPI, is a Python implementation of the Model Context Protocol (MCP). Prior to version 1.23.0, tThe 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. This issue does not affect servers using stdio transport. This vulnerability is fixed in 1.23.0.
A vulnerability exists in the Model Context Protocol (MCP) Python SDK, specifically in versions prior to 1.23.0, where DNS rebinding protection is not enabled by default for HTTP-based servers. This issue can be exploited when an MCP server is hosted on localhost without authentication, using FastMCP with streamable HTTP or SSE transport, and without configured TransportSecuritySettings. In such scenarios, 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 access resources or invoke tools on the MCP server on behalf of the user. It is important to note that running HTTP-based MCP servers locally without authentication is discouraged by MCP security best practices. This vulnerability does not impact servers using stdio transport.
Update the Model Context Protocol Python SDK to version 1.23.0 or later, which automatically enables DNS rebinding protection for localhost servers. For custom low-level server configurations using StreamableHTTPSessionManager or SseServerTransport, explicitly configure TransportSecuritySettings when running an unauthenticated server on localhost.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 2, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1188 | Initialization of a Resource with an Insecure Default | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| lfprojects mcp python sdk | < 1.23.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 18, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 10, 2026 | Initial Analysis | [email protected] |
| Dec 2, 2025 | New CVE Received | [email protected] |