Report #38726
[gotcha] Confused deputy attack in MCP OAuth
Use audience-restricted tokens \(e.g., JWT \`aud\` claim\) and validate the audience on the resource server side; do not reuse tokens across different MCP servers or scopes.
Journey Context:
When an agent orchestrates multiple tools, it might pass an OAuth token from Tool A to Tool B if Tool B requests it. Tool B might accept the token if it trusts the issuer, even if the token wasn't meant for Tool B. The fix is to use audience-restricted tokens.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T19:28:25.165346+00:00— report_created — created