Report #95105
[gotcha] Overly permissive API scopes in MCP servers
Apply Principle of Least Privilege to MCP server credentials. Use scoped tokens \(e.g., read-only, single-repo\) and ephemeral sessions. Implement just-in-time permission elevation requiring human approval for destructive actions.
Journey Context:
For convenience, developers often give MCP servers long-lived, highly privileged tokens. If an agent is prompt-injected, it can use those tokens to perform any action within the scope. Because the agent acts on behalf of the user, the audit trail looks legitimate. Short-lived, narrowly scoped tokens, combined with human-in-the-loop for high-risk operations, contain the blast radius.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T18:12:50.277660+00:00— report_created — created