Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLure victim to malicious website
-
DeliveryRebind DNS to 127.0.0.1
-
ExploitBypass same-origin policy to local server
-
ExecutionInvoke MCP tools / read resources
-
ImpactExfiltrate data or abuse tool capabilities
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V13 - Configuration Secure default settings
|
| Exploitation Conditions | Exploitation requires a specific, non-default-recommended deployment: an HTTP-based MCP server built with FastMCP using streamable HTTP or SSE transport, bound to localhost (127.0.0.1/localhost/::1), running WITHOUT authentication, AND with no TransportSecuritySettings (DNS rebinding protection) configured. The victim must additionally visit an attacker-controlled web page in a browser on the same host (UI:P/user interaction), and the attacker must successfully execute a DNS rebinding sequence (AT:P/attack requirement). Limiting factors: servers using stdio transport are NOT affected; servers that set TransportSecuritySettings or require authentication are NOT affected; and the vendor notes that running unauthenticated local HTTP MCP servers is already contrary to MCP security best practices, so the vulnerable population is self-selected. Low-level servers using StreamableHTTPSessionManager or SseServerTransport directly remain exposed even after upgrade unless they explicitly configure TransportSecuritySettings. |
| Impact | Signals point consistently toward a real-but-conditional risk rather than a widespread emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H) scores 7.6 (High) and reflects an unauthenticated network-reachable flaw, but the AT:P (attack requirements present) and UI:P (passive user interaction) metrics capture that this is not a point-and-click remote exploit: the victim must visit a malicious website while running a vulnerable local server. EPSS is only 0.03% (8th percentile), indicating very low modeled probability of broad exploitation, which aligns with the narrow preconditions described (localhost HTTP server, no authentication, FastMCP streamable-HTTP/SSE transport, TransportSecuritySettings not configured). Publicly available POC/exploit code exists (a gist), which raises the floor on exploitability, but this is distinct from active exploitation - there is no CISA KEV listing, so EPSS-low + POC-yes + KEV-no together suggest opportunistic/targeted potential rather than mass exploitation. No SSVC decision data was provided in the input, so exploitation-automatable and technical-impact judgments are inferred from CVSS only. Net: a legitimate issue worth patching, but the configuration dependency and CWE-1188 (insecure-default) nature mean real-world exposure is limited to users who deliberately ran an unauthenticated local HTTP MCP server - a setup the vendor explicitly discourages. |
| Exploit ScenarioDerived | A developer runs a FastMCP-based MCP server on localhost over streamable HTTP or SSE without authentication and without configuring TransportSecuritySettings. The developer then visits an attacker-controlled website, which uses DNS rebinding to make the browser treat the attacker's domain as resolving to 127.0.0.1, bypassing same-origin policy and allowing the page to send requests to the local MCP server to invoke tools or read resources on the user's behalf. Publicly available POC code exists demonstrating the technique. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Oct 18, 2026
DNS rebinding protection in the Model Context Protocol Python SDK (PyPI package mcp) is not enabled by default, so FastMCP servers using streamable HTTP or SSE transport that are bound to localhost and run without authentication can be reached from a malicious web page and tricked into invoking their exposed tools on the user's behalf. Only a narrow, non-recommended deployment is affected - servers using stdio transport, servers requiring authentication, and servers that explicitly configure TransportSecuritySettings are not exploitable - and successful abuse additionally requires the victim to browse an attacker-controlled site and the attacker to complete a DNS rebinding sequence. Publicly available exploit code exists (a proof-of-concept gist) and several Red Hat errata reference the flaw, though EPSS is low at roughly 0.03% and there is no KEV listing indicating active exploitation; the vendor-released patch is version 1.23.0.
Earlier versions of this analysis (1)
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 rebi
RemediationAI
Upgrade the mcp package to 1.23.0 or later, which auto-enables DNS rebinding protection for FastMCP servers whose host is 127.0.0.1, localhost, or ::1 (see the fix commit https://github.com/modelcontextprotocol/python-sdk/commit/d3a184119e4479ea6a63590bc41f01dc06e3fa99 and the advisory https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-9h52-p55h-vw2f); Red Hat users should apply the corresponding errata. Upgrading is necessary but not sufficient for low-level servers built directly on StreamableHTTPSessionManager or SseServerTransport, which receive no automatic protection - those must explicitly construct TransportSecuritySettings with enable_dns_rebinding_protection=True plus an allowed_hosts list containing only 127.0.0.1:*, localhost:*, and [::1]:* and a matching allowed_origins list, at the cost of rejecting any legitimate cross-origin or reverse-proxied hostname you fail to enumerate. Where the server does not need HTTP, switch to stdio transport, which is not affected by this issue. Where HTTP is required, add an authentication layer in front of the MCP endpoint (token or mTLS) so that even a successful rebinding request is rejected; this introduces credential management overhead for local clients. Finally, avoid binding to 0.0.0.0 or other non-loopback interfaces without authentication - note the automatic protection intentionally does not apply to those binds, so they must be covered by the explicit TransportSecuritySettings configuration and network-level access controls.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in pypi, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The MCP Python SDK implements the Model Context Protocol for Python, and its FastMCP convenience layer exposes two HTTP-based transports - streamable HTTP and server-sent events (SSE) - alongside the local-only stdio transport. HTTP transports rely on the browser same-origin policy as an implicit boundary when the server listens on loopback, but DNS rebinding defeats that boundary: an attacker-controlled domain is first resolved to the attacker's server and then re-resolved to 127.0.0.1, so the browser treats subsequent requests to the attacker's hostname as same-origin while the packets actually land on the victim's local MCP server. The root cause is CWE-1188 (Insecure Default Initialization of Resource): FastMCP constructed its settings without a TransportSecuritySettings object, leaving host-header and origin allow-listing (the SDK's DNS rebinding protection) off unless the developer opted in. The upstream fix auto-populates TransportSecuritySettings when host is 127.0.0.1, localhost, or ::1, enabling enable_dns_rebinding_protection and allow-listing 127.0.0.1:*, localhost:* and [::1]:* as hosts and http:// equivalents as origins; explicit user-supplied settings are preserved and non-loopback binds such as 0.0.0.0 are deliberately left untouched. Because the flaw is configuration of the HTTP session manager rather than a memory-safety bug, the practical impact is limited to tool invocation and resource access with the privileges the MCP server already holds - no availability impact is assessed.
Know when Mcp Python Sdk gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Web-delivered (AV:N) against an unauthenticated server (PR:N), but DNS rebinding and victim browsing make it AC:H/UI:R; tool invocation yields high C/I, no availability impact.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
4DescriptionCVE.org
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.
Blast Radius
ecosystem impact- 9 pypi packages depend on mcp (8 direct, 1 indirect)
Ecosystem-wide dependent count for version 1.23.0.
Executive ViewAI
A security weakness in the Model Context Protocol (MCP) Python SDK - the 'mcp' package used to build FastMCP servers - leaves certain locally hosted, non-authenticated deployments exposed to DNS rebinding attacks that could let a malicious website invoke exposed tools on a victim's behalf. The exposure is narrow (only streamable HTTP/SSE servers bound to localhost without authentication and without TransportSecuritySettings configured), and abuse requires a victim to visit an attacker-controlled page plus a successful rebinding sequence. Engineering and developer-tooling teams running affected MCP servers should treat this as a contained but real risk, since a vendor fix (1.23.0) is already available and the affected deployment pattern is explicitly discouraged by the vendor.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
EUVD-2025-200273
GHSA-9h52-p55h-vw2f
NVD
CVE.org
EPSS
Exploit-DB