mcp is vulnerable to Origin Validation Error
53
CVE Score
Medium
Origin Validation Error
The MCP::Server::Transports::StreamableHTTPTransport processes JSON-RPC requests without inspecting the HTTP Host or Origin headers, and ships no allowlist or DNS-rebinding guard. A local MCP server bound to a loopback or LAN port can therefore be driven cross-origin by any web page the victim visits through a DNS-rebinding attack, letting the page create a session and invoke exposed tools. This can disclose local data such as files, secrets, or command output to an attacker origin. The fix validates Host and Origin headers against an allowlist and rejects disallowed requests with HTTP 403.
Upgrade the mcp library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and expose the Streamable HTTP transport over a local or network-reachable HTTP port.
0.1.0 - 0.22.0
Fixed in 0.23.0mcp is vulnerable to Origin Validation Error in versions 0.1.0 - 0.22.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.