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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-12-02 · Modified: 2025-12-02
- Aliases: GHSA-9h52-p55h-vw2f, PYSEC-2026-1617, CGA-7mmq-hg7p-hjgp, CGA-c85v-9x4v-23vg, CGA-j6xw-vm35-2fwm, CGA-p2fw-xfwq-77vw, CGA-q2pq-j4rh-9mvq
- Record: https://cvemate.com/vulnerability/CVE-2025-66416 · JSON: https://cvemate.com/vulnerability/CVE-2025-66416/json

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

## Signals

- CVSS: 8.1 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
- EPSS: 0.544%, percentile 47.142%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard open-webui-compat (Chainguard): \< 0.6.40-r1
- chainguard py3-semgrep (Chainguard): \< 1.145.0-r0
- chainguard semgrep (Chainguard): \< 1.145.0-r0
- wolfi open-webui-compat (Wolfi): \< 0.6.40-r1
- wolfi py3-semgrep (Wolfi): \< 1.145.0-r0
- wolfi semgrep (Wolfi): \< 1.145.0-r0
- lfprojects mcp\_python\_sdk: \< 1.23.0
- modelcontextprotocol python-sdk: \< 1.23.0
- PyPI mcp (PyPI): \< 1.23.0

## References

- <https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-9h52-p55h-vw2f>
- <https://github.com/modelcontextprotocol/python-sdk/commit/d3a184119e4479ea6a63590bc41f01dc06e3fa99>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-66416>
- <https://github.com/advisories/GHSA-9h52-p55h-vw2f>
- <https://github.com/modelcontextprotocol/python-sdk>
- <https://github.com/pypa/advisory-database/tree/main/vulns/mcp/PYSEC-2026-1617.yaml>
- <https://pypi.org/project/mcp>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/66xxx/CVE-2025-66416.json>

---

Data as of 2026-12-05T06:42:43.507Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
