CVE-2025-66416

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

Configuration 1 (hide)

cpe:2.3:a:lfprojects:mcp_python_sdk:*:*:*:*:*:*:*:*

History

10 Mar 2026, 19:40

Type Values Removed Values Added
First Time Lfprojects mcp Python Sdk
Lfprojects
CPE cpe:2.3:a:lfprojects:mcp_python_sdk:*:*:*:*:*:*:*:*
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 8.1
References () https://github.com/modelcontextprotocol/python-sdk/commit/d3a184119e4479ea6a63590bc41f01dc06e3fa99 - () https://github.com/modelcontextprotocol/python-sdk/commit/d3a184119e4479ea6a63590bc41f01dc06e3fa99 - Patch
References () https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-9h52-p55h-vw2f - () https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-9h52-p55h-vw2f - Vendor Advisory

02 Dec 2025, 19:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-12-02 19:15

Updated : 2026-03-10 19:40


NVD link : CVE-2025-66416

Mitre link : CVE-2025-66416

CVE.ORG link : CVE-2025-66416


JSON object : View

Products Affected

lfprojects

  • mcp_python_sdk
CWE
CWE-1188

Insecure Default Initialization of Resource