Report #96614
[gotcha] Confused deputy problem in MCP OAuth token handling
Bind tokens to the specific MCP server and resource using audience restrictions \(\`aud\` claim\) and PKCE.
Journey Context:
If an agent obtains an OAuth token for Server A, and Server A is malicious, it might try to use that token to access Server B if the token isn't audience-restricted. The agent acts as a confused deputy, granting unintended access. Standard OAuth PKCE flow with strict audience validation ensures tokens are only valid for the specific resource they were requested for.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T20:44:57.965241+00:00— report_created — created