CVE-2025-66416: MCP Python SDK - DNS Rebinding
- Cve: CVE-2025-66416
- Name: MCP Python SDK - DNS Rebinding
- 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.
- Impact: Attackers can bypass same-origin policy to send unauthorized requests to local MCP server, potentially invoking tools or accessing resources on behalf of the user.
- Remediation: Update to version 1.23.0 or later.
- Vulnerability type: dns_rebinding
- Vulnerability impact: dns_rebinding
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
- Epss score: 0.00544
- Epss percentile: 0.46292
- Assignee: [email protected]
- Published at: 2025-12-02T19:15:52Z
- Age in days: 357
- Modified at: 2026-10-18T18:10:00Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-66416
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-1188 | Initialization of a Resource with an Insecure Default |
Hackerone
- Reports: 1
- Rank: 5211
References
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| lfprojects:mcp_python_sdk | < 1.23.0 | no | nvd | /v1/products/lfprojects/mcp_python_sdk |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| modelcontextprotocol/python-sdk | commit, fix, package, security_advisory | yes | /v1/repositories/modelcontextprotocol/python-sdk |
Index
- Repositories: 980
- Repositories high signal: 599
- Packages: 1
Exploitation
- Remote: yes
- Hackerone reports: 1
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, exposed hosts