Report #79374
[gotcha] Local MCP HTTP/SSE servers vulnerable to DNS rebinding or CORS attacks
Bind local MCP servers strictly to localhost \(127.0.0.1\) and validate the Origin header, or use strict transport security policies to prevent cross-origin requests.
Journey Context:
MCP servers often run locally to give the agent access to the host machine. If exposed via HTTP/SSE without proper CORS or origin checks, a malicious website visited by the user can send requests to the local MCP server, executing tools \(like reading local files\) on behalf of the attacker, completely bypassing the LLM interaction layer.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T15:49:31.275418+00:00— report_created — created