{"id":"CVE-2025-66416","published":"2025-12-02T18:14:28Z","modified":"2025-12-02T18:45:53Z","title":"DNS Rebinding Protection Disabled by Default in Model Context Protocol Python SDK for Servers Running on Localhost","vendor":"modelcontextprotocol","product":"python-sdk","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.6,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0079,"percentile":0.52844,"provenance":"source"},"cwes":[{"id":"CWE-1188","name":"Initialization of a Resource with an Insecure Default"}],"references":[{"url":"https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-9h52-p55h-vw2f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/modelcontextprotocol/python-sdk/commit/d3a184119e4479ea6a63590bc41f01dc06e3fa99","tags":["x_refsource_MISC"]}],"priority":{"score":15.9,"factors":[{"name":"EPSS percentile","points":10.57},{"name":"CVSS severity","points":5.32}]},"vendorSlug":"modelcontextprotocol","affectedVersions":[{"vendor":"modelcontextprotocol","product":"python-sdk","versions":["< 1.23.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-12-02T18:42:19.561436Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"mcp","vulnerableRanges":["<1.23.0"],"patched":["1.23.0"],"from":["GHSA-9h52-p55h-vw2f","PYSEC-2026-1617"],"provenance":"source"}],"summary":{"text":"The Model Context Protocol Python SDK (the mcp package on PyPI, from modelcontextprotocol's python-sdk) does not enable DNS rebinding protection by default for HTTP-based FastMCP servers using streamable HTTP or SSE transport, when TransportSecuritySettings has not been configured. An attacker can exploit this when such a server is run on localhost without authentication by luring a user to a malicious website, which can use DNS rebinding to bypass same-origin restrictions and invoke tools or access resources on the local server on the user's behalf; stdio transport is not affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:51Z"},"euvd":{"id":"EUVD-2025-200273","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-53366","published":"2025-07-04","fixed":"1.9.4","kev":false},{"cve":"CVE-2025-53365","published":"2025-07-04","fixed":"1.10.0","kev":false,"link":{"from":"CVE-2025-53365","to":"CVE-2025-66416","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:mcp","fromFixed":"1.10.0","toFixed":"1.23.0","daysApart":151}]}},{"cve":"CVE-2025-66416","published":"2025-12-02","fixed":"1.23.0","kev":false},{"cve":"CVE-2026-52869","published":"2026-07-15","fixed":"1.27.2","kev":false,"link":{"from":"CVE-2025-66416","to":"CVE-2026-52869","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:mcp","fromFixed":"1.23.0","toFixed":"1.27.2","daysApart":225},{"kind":"same-code","provenance":"machine","files":["src/mcp/server/fastmcp/server.py"],"commits":["https://github.com/modelcontextprotocol/python-sdk/commit/d3a184119e4479ea6a63590bc41f01dc06e3fa99","https://github.com/modelcontextprotocol/python-sdk/commit/1abcca2408a6b50e10ec601181f63f9978705c00","https://github.com/modelcontextprotocol/python-sdk/commit/ce267b6fc515dc4efc1dc70b6975b16ff0feef0a"],"basis":"shared file"}]}},{"cve":"CVE-2026-52870","published":"2026-07-15","fixed":"1.27.2","kev":false,"link":{"from":"CVE-2025-66416","to":"CVE-2026-52870","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:mcp","fromFixed":"1.23.0","toFixed":"1.27.2","daysApart":225}]}},{"cve":"CVE-2026-59950","published":"2026-07-15","fixed":"1.28.1","kev":false}],"package":"PyPI:mcp"}}