Report #92995
[gotcha] MCP servers using Streamable HTTP are vulnerable to DNS rebinding or CORS misconfigurations
Bind MCP HTTP servers strictly to localhost \(127.0.0.1\) and validate the \`Origin\` header to reject cross-origin requests.
Journey Context:
When MCP servers expose an HTTP endpoint, developers often bind to \`0.0.0.0\` for convenience or misconfigure CORS to allow \`\*\`. A malicious site can then make requests to the local MCP server, 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-22T14:40:55.621787+00:00— report_created — created