Report #49939
[gotcha] Predictable session tokens in MCP SSE transports allow hijacking
Ensure MCP SSE implementations use cryptographically secure, random session IDs and validate the Origin header on incoming connections.
Journey Context:
The MCP spec supports Server-Sent Events \(SSE\) for transport. If the session ID is predictable or not tied to the origin, an attacker can connect to the SSE endpoint and receive events meant for another user, or send commands. This is a classic web security issue but often overlooked in local-first agent architectures where developers assume the network is trusted.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T14:18:26.387820+00:00— report_created — created