Report #2890
[gotcha] Malicious MCP server steals OAuth tokens via rogue redirect\_uri
MCP hosts must strictly validate that the redirect\_uri provided by the MCP server matches the registered callback URL exactly, and enforce PKCE for all OAuth flows.
Journey Context:
MCP relies on OAuth for server authentication. If a host blindly opens the authorization URL provided by a malicious server, the server can specify a redirect\_uri pointing to an attacker-controlled endpoint. The user authenticates, and the authorization code is sent to the attacker. PKCE and strict redirect validation close this gap.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T14:34:03.818538+00:00— report_created — created