ADVISORIES

Vulnerability

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.

7 advisories report this vulnerability, across 3 ecosystems.

High severity All Chainguard 5Wolfi 5PyPI 2

Advisories

  • CGA-7mmq-hg7p-hjgp
    CVE-2025-66416 ChainguardWolfi Updated 5 November 2026
  • CGA-c85v-9x4v-23vg
    CVE-2025-66416 ChainguardWolfi Updated 5 November 2026
  • CGA-j6xw-vm35-2fwm
    CVE-2025-66416 ChainguardWolfi Updated 5 November 2026
  • CGA-p2fw-xfwq-77vw
    CVE-2025-66416 ChainguardWolfi Updated 5 November 2026
  • CGA-q2pq-j4rh-9mvq
    CVE-2025-66416 ChainguardWolfi Updated 5 November 2026
  • GHSA-9h52-p55h-vw2f

    Model Context Protocol (MCP) Python SDK does not enable DNS rebinding protection by default

    High CVE-2025-66416 PyPI Updated 10 September 2026
  • PYSEC-2026-1617

    Model Context Protocol (MCP) Python SDK does not enable DNS rebinding protection by default

    CVE-2025-66416 PyPI Updated 7 July 2026

References