Open DCR on remote MCP servers invites auth-code hijacking: should you allowlist redirect URIs?

After_Pumpkin3803 · reddit · 2026-11-07

A developer running a remote MCP server with OAuth Dynamic Client Registration outlines a real attack vector: with open DCR, anyone can register a client named "Claude" or "ChatGPT" and set the redirecturi to a domain they control, then send customers a legitimate-looking authorization link. When the customer approves the consent screen, the auth code goes to the attacker, who exchanges it for a token and makes MCP tool calls as that customer.

The author asks how production deployments handle this: allowlist redirect URIs, warn, or leave it open — and whether localhost or custom-scheme redirects for desktop clients introduce extra pitfalls. The post lays out a clear attack chain; community answers are where the operational guidance lives.

Original post →

More from coding & agent

coding & agent channel →