Report #23828
[gotcha] Malicious website executes local MCP tools via DNS rebinding or loose CORS
Local MCP servers must enforce strict CORS policies \(checking the Origin header against an allowlist\) and implement pre-shared keys or local authentication tokens, even on localhost.
Journey Context:
The assumption that localhost is a safe sandbox is a classic web security fallacy. Because MCP tools can execute code or access local files, an open local server is a massive RCE vector. Developers skip auth for local dev convenience, but it exposes the user to drive-by attacks from any website they visit.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T18:24:18.706236+00:00— report_created — created