Skip to content

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

HighCVSS 7.6 EPSS 0.54%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
Red Hat

Description

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.

Upgrade path

10 packages: 2 fixed, 7 with no fix yet.

PackageAffectedFixed inStatus
redhat/ansible-automation-platform-26/lightspeed-chatbot-rhel9:1768915992(Red Hat ansible_automation_platform 2.6 el9) All versions No fix listed No fix yet
redhat/ansible-automation-platform-26/mcp-tools-rhel9:1768887865(Red Hat ansible_automation_platform 2.6 el9) All versions No fix listed No fix yet
redhat/openshift-lightspeed/lightspeed-service-api-rhel9(Red Hat openshift_lightspeed 1) All versions No fix listed No fix yet
redhat/rhoai/odh-feature-server-rhel9:1770277795(Red Hat openshift_ai 3.3 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-feature-server-rhel9:v2.25.1-1765354568(Red Hat openshift_ai 2.25 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-llama-stack-core-rhel9(Red Hat openshift_ai) All versions No fix listed No fix yet
redhat/satellite/foreman-mcp-server-rhel9:1767868827(Red Hat satellite 6.18 el9) All versions No fix listed No fix yet
lfprojects mcp python sdk < 1.23.0 1.23.0 Fixed
pypi mcp(PyPI) < 1.23.0; = 0.9.1; = 1.0.0; = 1.1.0 +43 more 1.23.0 Fixed
modelcontextprotocol python-sdk = < 1.23.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi mcp(PyPI) < 1.23.0 1.23.0
pypi mcp(PyPI) = 0.9.1 No fix listed
pypi mcp(PyPI) = 1.0.0 No fix listed
pypi mcp(PyPI) = 1.1.0 No fix listed
pypi mcp(PyPI) = 1.1.1 No fix listed
pypi mcp(PyPI) = 1.1.2 No fix listed
pypi mcp(PyPI) = 1.1.3 No fix listed
pypi mcp(PyPI) = 1.10.0 No fix listed
pypi mcp(PyPI) = 1.10.1 No fix listed
pypi mcp(PyPI) = 1.11.0 No fix listed
pypi mcp(PyPI) = 1.12.0 No fix listed
pypi mcp(PyPI) = 1.12.1 No fix listed
pypi mcp(PyPI) = 1.12.2 No fix listed
pypi mcp(PyPI) = 1.12.3 No fix listed
pypi mcp(PyPI) = 1.12.4 No fix listed
pypi mcp(PyPI) = 1.13.0 No fix listed
pypi mcp(PyPI) = 1.13.1 No fix listed
pypi mcp(PyPI) = 1.14.0 No fix listed
pypi mcp(PyPI) = 1.14.1 No fix listed
pypi mcp(PyPI) = 1.15.0 No fix listed
pypi mcp(PyPI) = 1.16.0 No fix listed
pypi mcp(PyPI) = 1.17.0 No fix listed
pypi mcp(PyPI) = 1.18.0 No fix listed
pypi mcp(PyPI) = 1.19.0 No fix listed
pypi mcp(PyPI) = 1.2.0 No fix listed
Show 31 more
ProductAffected versionsFixed in
pypi mcp(PyPI) = 1.2.0rc1 No fix listed
pypi mcp(PyPI) = 1.2.1 No fix listed
pypi mcp(PyPI) = 1.20.0 No fix listed
pypi mcp(PyPI) = 1.21.0 No fix listed
pypi mcp(PyPI) = 1.21.1 No fix listed
pypi mcp(PyPI) = 1.21.2 No fix listed
pypi mcp(PyPI) = 1.22.0 No fix listed
pypi mcp(PyPI) = 1.3.0 No fix listed
pypi mcp(PyPI) = 1.3.0rc1 No fix listed
pypi mcp(PyPI) = 1.4.0 No fix listed
pypi mcp(PyPI) = 1.4.1 No fix listed
pypi mcp(PyPI) = 1.5.0 No fix listed
pypi mcp(PyPI) = 1.6.0 No fix listed
pypi mcp(PyPI) = 1.7.0 No fix listed
pypi mcp(PyPI) = 1.7.1 No fix listed
pypi mcp(PyPI) = 1.8.0 No fix listed
pypi mcp(PyPI) = 1.8.1 No fix listed
pypi mcp(PyPI) = 1.9.0 No fix listed
pypi mcp(PyPI) = 1.9.1 No fix listed
pypi mcp(PyPI) = 1.9.2 No fix listed
pypi mcp(PyPI) = 1.9.3 No fix listed
pypi mcp(PyPI) = 1.9.4 No fix listed
modelcontextprotocol python-sdk = < 1.23.0 No fix listed
redhat/ansible-automation-platform-26/lightspeed-chatbot-rhel9:1768915992(Red Hat:ansible_automation_platform:2.6::el9) All versions No fix listed
redhat/ansible-automation-platform-26/mcp-tools-rhel9:1768887865(Red Hat:ansible_automation_platform:2.6::el9) All versions No fix listed
redhat/rhoai/odh-feature-server-rhel9:v2.25.1-1765354568(Red Hat:openshift_ai:2.25::el9) All versions No fix listed
redhat/rhoai/odh-feature-server-rhel9:1770277795(Red Hat:openshift_ai:3.3::el9) All versions No fix listed
redhat/satellite/foreman-mcp-server-rhel9:1767868827(Red Hat:satellite:6.18::el9) All versions No fix listed
redhat/openshift-lightspeed/lightspeed-service-api-rhel9(Red Hat:openshift_lightspeed:1) All versions No fix listed
redhat/rhoai/odh-llama-stack-core-rhel9(Red Hat:openshift_ai) All versions No fix listed
lfprojects mcp python sdk < 1.23.0 1.23.0

References