Report #85549
[gotcha] Granting MCP servers unrestricted sampling capabilities
Strictly scope and review the modelPreferences and systemPrompt when handling sampling requests from MCP servers. Never pass the full, unredacted conversation history to the sampling model if it contains sensitive user context.
Journey Context:
MCP allows servers to ask the client to run an LLM \(sampling\). Developers often just pass the current conversation history to fulfill this. A compromised server can use sampling to ask the LLM to summarize the conversation history, effectively exfiltrating private data from previous turns that the server shouldn't have access to. The fix requires treating the LLM as a shared resource that needs access controls.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T02:10:57.880924+00:00— report_created — created