Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconVictim visits attacker site
-
DeliveryAttacker serves JavaScript payload
-
ExploitDNS rebinds attacker domain to 127.0.0.1
-
InstallBrowser sends requests with attacker's Host header to victim's localhost MCP server
-
C2MCP server accepts unauthenticated requests
-
ExecuteAttacker enumerates and invokes exposed tools
-
ImpactAttacker executes arbitrary code via shell/file tools
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Origin validation
|
| Exploitation Conditions | Victim must visit an attacker-controlled website while running an rmcp-based MCP server (version < 1.4.0) using the Streamable HTTP server transport on a network-accessible interface (localhost or 0.0.0.0). The MCP server must expose tools or resources that provide value to the attacker (file access, shell execution, API calls, browser control, language servers). Exploitation is limited to browsers that permit DNS rebinding (modern browsers allow this for performance; pinning is rare). Non-HTTP transports (stdio, child-process) are NOT vulnerable regardless of version. Default configurations are exploitable when the HTTP transport is enabled, as prior to 1.4.0 there was no Host header validation. The attack requires user interaction (UI:R) to trigger the initial visit to the malicious site, but once initiated, the JavaScript payload executes without further interaction. Attack complexity is low (AC:L) since DNS rebinding toolkits are publicly available and the vulnerable code path is straightforward. No authentication required (PR:N) against the MCP server itself-authentication is bypassed by the browser's same-origin policy treating the rebound localhost connection as within the attacker's origin. |
| Impact | CVSS 8.8 (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) accurately reflects the attack mechanics: network-accessible via browser, low complexity (DNS rebinding is well-understood), no privileges required (unauthenticated HTTP), user interaction required (victim must visit malicious site), unchanged scope (impact confined to MCP server process), and high confidentiality/integrity/availability impact given MCP servers frequently expose filesystem access, shell execution, browser control, and language servers running with user privileges. EPSS score not provided in input but likely low-to-moderate since exploitation requires social engineering (victim site visit) rather than automated scanning. No CISA KEV listing at time of analysis. Publicly available exploit code exists (GitHub PR #764 provides working patch, allowing reverse-engineering of vulnerable code). Real-world risk is HIGH for developers running MCP servers on localhost with default configurations, especially those exposing powerful tools (shell, file writes, API keys). The coordinated disclosure across five MCP SDK implementations (Rust, TypeScript, Python, Go, Java) indicates vendor awareness of widespread exposure. Mitigation urgency is elevated by: (1) MCP's target demographic (developers) often runs multiple local services, (2) browser-based attack vector requires no network access to victim's machine, (3) arbitrary code execution potential through exposed tools. Risk is mitigated by UI:R requirement (attacker cannot achieve one-click exploitation) and S:U scope (no lateral movement beyond MCP server process unless exposed tools enable privilege escalation). Absence of EPSS/KEV data prevents quantification of in-the-wild exploitation likelihood, but proof-of-concept feasibility is HIGH given publicly documented patch and DNS rebinding toolkit availability. |
| Exploit ScenarioDerived | An attacker registers a domain (evil.com) and configures DNS with low TTL. Victim visits evil.com, which serves JavaScript that initiates a fetch() request to evil.com. The attacker then rebinds evil.com's DNS A record to 127.0.0.1. The victim's browser, reusing the existing connection or making a new request to the now-rebound IP, sends the request to the victim's localhost:8080 MCP server with Host: evil.com. The vulnerable rmcp server (< 1.4.0) accepts the request, allowing the attacker's JavaScript to enumerate exposed tools (filesystem access, shell commands), read sensitive resources (API keys, session tokens, local files), and invoke tools to write malicious files or execute code with the victim's user privileges. Publicly available exploit code exists (patch code reveals vulnerable request path). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 06, 2026
DNS rebinding in rmcp Rust crate allows malicious websites to control local MCP servers and achieve arbitrary code execution through exposed developer tools. Fixed in version 1.4.0 via Host header validation with loopback-only default allowlist. The vulnerability affects Streamable HTTP server transport only (stdio and child-process transports unaffected). Vendor-released patch available (PR #764, commit 8e22aa2). Similar vulnerabilities patched across TypeScript, Python, Go, and Java MCP SDKs indicate coordinated disclosure. CVSS 8.8 (network vector, low complexity, requires user interaction) reflects browser-mediated attack requiring victim to visit attacker site.
RemediationAI
Upgrade rmcp to version 1.4.0 or later (current version 1.5.1) per vendor advisory at https://github.com/modelcontextprotocol/rust-sdk/security/advisories/GHSA-89vp-x53w-74fx. The fix was released on 2026-04-09 via PR #764 (https://github.com/modelcontextprotocol/rust-sdk/pull/764, commit 8e22aa2). Version 1.4.0 introduces StreamableHttpServerConfig::allowed_hosts defaulting to loopback-only (["localhost", "127.0.0.1", "::1"]) and rejects requests with non-allowlisted Host headers via HTTP 403. If immediate upgrade is not possible, deploy the MCP server behind a reverse proxy (nginx, Caddy, Apache) configured to reject requests whose Host header does not match expected hostnames-this delegates validation to the proxy layer but requires additional infrastructure and careful configuration to avoid bypass via proxy misconfiguration. Do not bind the MCP server to 0.0.0.0 or public interfaces without such a proxy, as this exposes the service to direct network attacks beyond DNS rebinding. Public deployments upgrading to 1.4.0+ must explicitly configure allowed_hosts via StreamableHttpService::with_allowed_hosts(["example.com", "api.example.com:8080"]) to match their production hostnames; the loopback-only default will block legitimate public traffic. Opting out via disable_allowed_hosts() is strongly discouraged unless an upstream proxy validates Host headers, as this re-introduces the vulnerability. Note that Origin header validation (issue #822) is tracked as future defense-in-depth but not required to block DNS rebinding.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 4 packages in cargo, npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The Model Context Protocol (MCP) provides structured communication between AI applications and external tools. The rmcp crate implements MCP in Rust, exposing a Streamable HTTP server transport for remote clients. Prior to 1.4.0, the HTTP server (crates/rmcp/src/transport/streamable_http_server/) accepted requests without validating the HTTP Host header against an allowlist. This violates the fundamental defense against DNS rebinding attacks, where an attacker-controlled domain initially resolves to a public IP, then rebinds to 127.0.0.1 or a private IP. The browser's same-origin policy allows the attacker's JavaScript to send authenticated requests to the rebound local endpoint. CWE-346 (Origin Validation Error) captures this class of flaw. The fix introduces validate_dns_rebinding_headers() which parses the Host header using http::uri::Authority, normalizes hostnames (case-insensitive, IPv6 bracket stripping), and rejects requests with HTTP 403 if the host is not on StreamableHttpServerConfig::allowed_hosts. The default allowlist restricts to loopback addresses (["localhost", "127.0.0.1", "::1"]), blocking cross-origin browser attacks while permitting local tool access. Public deployments must explicitly configure allowed_hosts via with_allowed_hosts() or deploy behind a reverse proxy that validates Host headers. The patch diff shows integration into the tower service layer, rejecting requests before they reach MCP handlers. Origin header validation (#822) is tracked separately as defense-in-depth but not required since browsers cannot forge Host headers during DNS rebinding.
Know when Python 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
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Primary rating from Vendor (https://github.com/modelcontextprotocol/rust-sdk) · only source for this CVE.
CVSS VectorVendor: https://github.com/modelcontextprotocol/rust-sdk
DescriptionCVE.org
Summary
Prior to version 1.4.0, the rmcp crate's Streamable HTTP server transport (crates/rmcp/src/transport/streamable_http_server/) did not validate the incoming Host header. This allowed a malicious public website, via a DNS rebinding attack, to send authenticated requests to an MCP server running on the victim's loopback or private-network interface - violating the MCP specification's transport security guidance.
Impact
An attacker who convinces a victim to visit a malicious page can:
- Enumerate and invoke any tool exposed by a locally-running rmcp-based MCP server.
- Read resources, prompts, and any state accessible via the MCP session.
- Trigger side effects (file writes, shell execution, API calls, etc.) limited only by what tools the victim's server exposes.
Because MCP servers frequently run with the user's privileges and expose developer tooling (filesystems, shells, browser control, language servers, etc.), the practical impact can extend to arbitrary code execution on the victim's machine.
Affected Versions
rmcp < 1.4.0 - all prior releases of the Streamable HTTP server transport. Non-HTTP transports (stdio, child-process) are not affected.
Patched Versions
rmcp >= 1.4.0 (current: 1.5.1).
Patch
Fixed in PR #764 (commit 8e22aa2), released as v1.4.0 on 2026-04-09:
StreamableHttpServerConfig::allowed_hostsnow defaults to a loopback-only allowlist:["localhost", "127.0.0.1", "::1"].- All incoming HTTP requests pass through
validate_dns_rebinding_headers(), which parses theHostheader and returns HTTP 403 if the host is not on the allowlist. - Public deployments can configure an explicit allowlist via
StreamableHttpService::with_allowed_hosts(...), or opt out (not recommended without an upstream reverse proxy that validatesHost) viadisable_allowed_hosts().
This fix validates the Host header only. Origin header validation is tracked as a defense-in-depth follow-up in #822 and is not required to block the DNS rebinding attack described here - the browser cannot forge the Host header sent to the rebound server.
Workarounds for Unpatched Users
- Upgrade to
rmcp >= 1.4.0. - If upgrade is not possible, place the MCP server behind a reverse proxy (e.g. nginx, Caddy) configured to reject requests whose
Hostheader is not one of your expected hostnames. - Do not bind the MCP server to
0.0.0.0without such a proxy.
Resources
- PR: https://github.com/modelcontextprotocol/rust-sdk/pull/764
- Issue: https://github.com/modelcontextprotocol/rust-sdk/issues/815
- Follow-up (Origin validation): https://github.com/modelcontextprotocol/rust-sdk/issues/822
- MCP transport security guidance: https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#security-warning
Related advisories (same class of vulnerability)
- TypeScript SDK: GHSA-w48q-cv73-mx4w
- Python SDK: GHSA-9h52-p55h-vw2f
- Go SDK: GHSA-xw59-hvm2-8pj6
- Java SDK: GHSA-8jxr-pr72-r468
Executive ViewAI
CVE-2026-42559 is a DNS rebinding vulnerability in the rmcp Rust crate that allows attackers to execute arbitrary code on local MCP servers through malicious websites, affecting any organization using the Streamable HTTP server transport for model context protocol integrations. Remediation is straightforward with vendor patch 1.4.0 available, but immediate inventory and upgrade of affected dependencies is critical to prevent compromise of development environments and integrated AI/ML tooling.
Vendor-released patch: version 1.4.0 (PR #764, commit 8e22aa2). If upgrade cannot be deployed immediately, disable or restrict HTTP Streamable transport to loopback-only access (127.0.0.1:* binding); implement strict Content-Security-Policy headers and restrict developer tool access to internal networks only; monitor for suspicious Host headers in MCP server logs.
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
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-30292
GHSA-89vp-x53w-74fx
NVD
CVE.org
EPSS
Exploit-DB