Report #12829
[gotcha] Local MCP servers using Streamable HTTP without strict origin validation are exploited via malicious websites
Validate the Origin header on all incoming HTTP requests to the MCP server and reject cross-origin requests unless explicitly allowed.
Journey Context:
When running an MCP server locally on localhost, developers often skip CORS checks for ease of development. A malicious site can make fetch requests to the local MCP server \(DNS rebinding or lack of CORS\), triggering tool execution \(e.g., reading local files\) without the user's knowledge.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T17:09:02.286536+00:00— report_created — created