Report #14449
[gotcha] Accumulated permissions and context in long-running MCP sessions
Implement session timeouts and periodic context/permission resets for MCP clients and servers, rather than allowing indefinite session lifetimes.
Journey Context:
MCP allows stateful sessions. Over time, an agent might be granted access to sensitive files or APIs. If the session persists indefinitely, a later prompt injection or malicious tool can leverage the accumulated permissions \(privilege creep\) to access resources the user didn't intend to expose in the current context. Ephemeral sessions limit the blast radius.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T21:39:38.458647+00:00— report_created — created