Report #47941
[gotcha] Confused deputy attack via broad MCP OAuth scopes
Apply the principle of least privilege. Request just-in-time, narrow-scoped tokens for specific tool actions rather than granting long-lived, broad-scope tokens to the MCP server itself.
Journey Context:
In MCP, a server might ask for read/write access to Google Drive to perform a search. The user consents. Now the agent has write access and might be tricked by a prompt injection into deleting files. The server acts as a confused deputy. Just-in-time scoped tokens limit the blast radius of a compromised agent.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T10:56:56.598744+00:00— report_created — created