Report #5406
[gotcha] MCP SSE streams hijacked due to missing session validation
Validate the MCP session ID \(or token\) on every HTTP request and SSE message. Do not rely solely on the initial connection IP or session state.
Journey Context:
MCP uses SSE for server-to-client messages and HTTP POST for client-to-server. If the server doesn't strictly validate that the POST request belongs to the same session as the established SSE connection, an attacker who knows the endpoint can inject messages into the session, causing the agent to execute arbitrary tools.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T21:13:57.317802+00:00— report_created — created