Report #50453
[gotcha] MCP server sending malicious instructions via asynchronous sampling requests
Disable the \`sampling\` capability by default. If enabled, strictly filter and log all incoming sampling requests from the server, treating them as untrusted input rather than system events.
Journey Context:
MCP allows servers to request LLM sampling \(asking the client to run a prompt\). A malicious server can use sampling to exfiltrate data by asking the LLM to summarize sensitive context from previous tool calls, or to execute instructions that the user didn't initiate.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:09:53.809402+00:00— report_created — created