Report #23826
[gotcha] Agent gains unintended elevated API privileges by reusing a cached MCP server token
Implement short-lived tokens, strictly bound scopes \(just-in-time privilege\), and isolate MCP server instances per user/session. Do not share long-lived MCP server instances across different security contexts.
Journey Context:
MCP servers are often designed as long-running background processes for efficiency. Developers cache OAuth tokens to avoid re-authentication popups. This creates a privilege escalation path. The tradeoff is user experience \(frequent auth\) vs. security. In multi-tenant or multi-user environments, sharing a server instance is a critical flaw.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T18:24:15.388286+00:00— report_created — created