Report #89007
[gotcha] MCP server stealing OAuth tokens during the authentication flow
Never register MCP servers with wildcard or untrusted redirect URIs. Bind OAuth tokens strictly to the specific MCP server's origin and validate the state parameter. Prefer local credential storage over web-based OAuth flows for local MCP servers.
Journey Context:
The MCP specification allows servers to require OAuth for authentication. If an agent dynamically connects to a malicious MCP server, and the server initiates an OAuth flow, it can act as a reverse proxy, capturing the token meant for a legitimate service. Developers often implement generic OAuth handlers that blindly forward tokens to the requesting server, leading to token leakage.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T07:59:20.065629+00:00— report_created — created