CVE-2025-66416
Reported by GitHub_M · Published December 2, 2025
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.
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| modelcontextprotocol | python-sdk | < 1.23.0 |
| modelcontextprotocol | python-sdk | < 1.23.0, < 1.23.0, < 1.23.0 |
| chainguard | open-webui | 0, 0 |
| wolfi | open-webui | 0, 0, 0 |
| PyPI | mcp | 0 |
| chainguard | semgrep | 0, 0 |
| wolfi | semgrep | 0, 0, 0 |
Timeline
- Dec 2, 2025 CVE Published
- Dec 3, 2025 EPSS Score
- Dec 7, 2025 EPSS Score
- Dec 12, 2025 EPSS Score
- Dec 16, 2025 EPSS Score
- Dec 21, 2025 EPSS Score
- Dec 25, 2025 EPSS Score
- Dec 29, 2025 EPSS Score
- Jan 3, 2026 EPSS Score
- Jan 7, 2026 EPSS Score
- Jan 12, 2026 EPSS Score
- Jan 16, 2026 EPSS Score
References
- https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-9h52-p55h-vw2f x_refsource_CONFIRM
- https://github.com/modelcontextprotocol/python-sdk/commit/d3a184119e4479ea6a63590bc41f01dc06e3fa99 x_refsource_MISC
- 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 url