Report #70789
[gotcha] Malicious websites invoking local MCP servers via DNS rebinding or CORS
Bind local MCP servers strictly to localhost \(127.0.0.1\), validate the Origin header to reject cross-origin requests, and implement CORS policies that do not allow wildcard \(\*\) origins.
Journey Context:
Local MCP servers often run on ephemeral ports without authentication, assuming local trust. A malicious website can use DNS rebinding to bypass browser same-origin policy, or simply fetch http://localhost:PORT if CORS is misconfigured, allowing the website to invoke destructive local tools \(like file deletion\) with the user's credentials.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T01:24:10.673809+00:00— report_created — created