INCIDENT MAP

Browse / MCP and Tool Server Flaws / CVE-2026-42559

rmcp Streamable HTTP server transport has a DNS rebinding vulnerability

CVE-2026-42559 ยท 2026-05-06 high

Class
MCP and Tool Server Flaws (filed by a model that read the advisory)
Technique
Code and command execution
Affected
rmcp (crates.io)
CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.3% chance of exploitation in 30 days

How it works, in short

A browser page can reach a locally running Streamable HTTP MCP server through DNS rebinding because the Host header is never checked, enabling tool calls. (Our summary, written by a model. The source text is below.)

Details

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:

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:

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

Resources

Related advisories (same class of vulnerability)

References

Source: GitHub Advisory Database, used under CC BY 4.0.