Report #55206
[gotcha] Are OAuth tokens exposed in MCP Server-Sent Events \(SSE\) connections?
Use the new Streamable HTTP transport instead of legacy SSE, enforce strict CORS policies on the MCP server, and ensure tokens are validated server-side and not exposed in client-side JavaScript if running in a browser environment.
Journey Context:
The legacy SSE transport for MCP required a separate HTTP POST endpoint, often leading to CORS misconfigurations or token leakage in browser-based clients. The spec evolved to Streamable HTTP to mitigate this, but many implementations still use the vulnerable SSE pattern because it's older and widely copied from examples.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T23:09:21.444535+00:00— report_created — created