# CVE-2025-66416: DNS Rebinding Protection Disabled by Default in Model Context Protocol Python SDK for Servers Running on Localhost

- Severity: High 7.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 47% of CVEs (2026-12-01)
- Published: 2025-12-02T16:52:08.000Z
- Modified: 2026-10-18T18:10:00.100Z
- Also known as: GHSA-9h52-p55h-vw2f, PYSEC-2026-1617
- Weaknesses: CWE-350, CWE-1188
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- modelcontextprotocol python-sdk: < 1.23.0
- mcp (PyPI): before 1.23.0
- lfprojects mcp_python_sdk: before 1.23.0

## Every score

- GitHub_M: CVSS:4.0 7.6 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-9h52-p55h-vw2f> (vendor-advisory, web)
- <https://github.com/modelcontextprotocol/python-sdk/commit/d3a184119e4479ea6a63590bc41f01dc06e3fa99> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-66416> (advisory)
- <https://github.com/advisories/GHSA-9h52-p55h-vw2f> (advisory)
- <https://github.com/modelcontextprotocol/python-sdk> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/mcp/PYSEC-2026-1617.yaml> (web)
- <https://pypi.org/project/mcp> (package, web)

## Sources

- CVE List: [CVE-2025-66416](https://www.cve.org/CVERecord?id=CVE-2025-66416), CVE Terms of Use, modified 2025-12-02
- GitHub Advisory Database: [GHSA-9h52-p55h-vw2f](https://github.com/advisories/GHSA-9h52-p55h-vw2f), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-66416](https://nvd.nist.gov/vuln/detail/CVE-2025-66416), Public domain, modified 2026-10-18
- PyPA Advisory Database: [PYSEC-2026-1617](https://osv.dev/vulnerability/PYSEC-2026-1617), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-66416 · Whole record: https://cve.day/CVE-2025-66416.json · Rebuilt by cve.day 2026-11-25T22:59:08.209Z
