Report #7518
[gotcha] Malicious MCP server stealing OAuth tokens via redirect URI manipulation
Strictly validate OAuth redirect URIs against a pre-registered allow-list during the MCP authorization flow. Never allow dynamic, unregistered, or wildcard redirect URIs.
Journey Context:
MCP supports standard OAuth for authorization. A compromised or malicious MCP server could provide a malicious authorization URL. If the agent client blindly follows it and passes the authorization code/token to the attacker's endpoint, the attacker gains access to the user's resources.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T03:06:52.247099+00:00— report_created — created