Report #57972
[gotcha] Privilege creep in long-lived MCP sessions
Invalidate and re-authenticate MCP sessions when agent context or user permissions change. Implement short-lived tokens and scope tool access strictly per task rather than per user session.
Journey Context:
MCP is designed around persistent connections. It is easy to authenticate once at connection time and keep the connection open. However, agents often switch tasks. If the MCP server caches the initial high-privilege token, a subsequent lower-privilege instruction can still execute high-privilege actions, violating the principle of least privilege.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T03:47:53.406355+00:00— report_created — created