Impact
The MCP Ruby SDK’s StreamableHTTPTransport component does not validate HTTP Host or Origin request headers. This omission permits a malicious web page to perform DNS rebinding, causing a user’s browser to resolve the address of a locally running MCP server and send requests that reach the server’s exposed tools. If an attacker can reach those tools, they may execute arbitrary commands or otherwise obtain unauthorized local access. The weakness is classified as CWE‑346 and CWE‑350.
Affected Systems
All installations of the Model Context Protocol Ruby SDK before update v0.23.0 are affected, irrespective of the host environment. The problem was addressed in release 0.23.0, which adds Host and Origin header validation.
Risk and Exploitability
With a CVSS score of 6.9 the vulnerability has moderate‑to‑high severity. The EPSS value of less than 1 % indicates a low probability of exploitation in the near term, and the vulnerability is not listed in the CISA KEV catalog. The most likely attack scenario involves a user visiting a compromised or malicious web page while a local MCP server is running, enabling the attacker to use DNS rebinding to target the server through a browser.
OpenCVE Enrichment
Github GHSA