Report #42191
[gotcha] Malicious MCP server abuses dynamic client registration to steal OAuth tokens
When acting as an OAuth client, strictly validate the MCP server's identity and use PKCE; do not blindly trust dynamically registered client IDs from untrusted servers.
Journey Context:
The MCP authorization spec relies on OAuth 2.0 Dynamic Client Registration. A malicious MCP server can register itself with a crafted redirect URI. If the agent client doesn't strictly validate the server's identity and redirect URI against an allow-list, the authorization code or token can be redirected to the attacker's server.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T01:17:25.043989+00:00— report_created — created