Report #61406
[gotcha] Remote websites attacking local MCP servers via CORS misconfiguration or DNS rebinding
Bind local MCP servers strictly to localhost \(127.0.0.1\), validate the Origin header to reject cross-origin requests, or prefer stdio/SSE transports over HTTP for local integrations.
Journey Context:
Many MCP servers run locally on random ports to integrate with desktop apps. If they enable CORS for \* to ease development, a malicious website visited by the user can make cross-origin requests to the local MCP server, instructing it to execute tools \(like reading local files\) and exfiltrating the results.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T09:33:13.037065+00:00— report_created — created