Report #1472
[gotcha] MCP OAuth token leakage via SSE URL parameters
Ensure MCP clients pass OAuth tokens in the Authorization header, not query strings. Validate redirect URIs strictly during the OAuth flow and avoid logging full request URLs containing tokens, especially when using legacy SSE transports.
Journey Context:
MCP uses standard OAuth 2.0, but the legacy SSE transport relies on GET requests which can lead to tokens being appended to URLs or logged by intermediaries. Furthermore, dynamic client registration can be abused if redirect URIs aren't strictly validated, allowing an attacker to intercept the authorization code.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-14T23:31:31.496014+00:00— report_created — created