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

18 Oct 2026, 18:10

Type Values Removed Values Added
Summary
  • (es) El SDK de Python de MCP, llamado 'mcp' en PyPI, es una implementación en Python del Protocolo de Contexto del Modelo (MCP). Versiones anteriores a la 1.23.0, el SDK de Python del Protocolo de Contexto del Modelo (MCP) no habilita la protección contra la reconfiguración de DNS (DNS rebinding) por defecto para servidores basados en HTTP. Cuando un servidor MCP basado en HTTP se ejecuta en localhost sin autenticación usando FastMCP con transporte HTTP o SSE en streaming, y no ha configurado TransportSecuritySettings, un sitio web malicioso podría explotar la reconfiguración de DNS (DNS rebinding) para eludir las restricciones de la política de mismo origen y enviar solicitudes al servidor MCP local. Esto podría permitir a un atacante invocar herramientas o acceder a recursos expuestos por el servidor MCP en nombre del usuario en esas circunstancias limitadas. Tenga en cuenta que ejecutar servidores MCP basados en HTTP localmente sin autenticación no se recomienda según las mejores prácticas de seguridad de MCP. Este problema no afecta a los servidores que utilizan transporte stdio. Esta vulnerabilidad está corregida en la versión 1.23.0.

Information

Published : 2025-12-02 19:15

Updated : 2026-10-18 18:10


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

Initialization of a Resource with an Insecure Default