Report #15079
[gotcha] MCP prompt templates are pre-packaged prompt injections the user invokes willingly
Audit all prompt templates from MCP servers before exposing them to users or the LLM. Treat template content as untrusted. Sanitize template variable interpolation to prevent injection through dynamic values. Consider disabling the prompts capability entirely for untrusted servers.
Journey Context:
MCP servers can expose 'prompt templates'—pre-crafted prompts that the LLM or user can invoke by name. These templates are presented as helpful shortcuts, but they are full prompt injection payloads that enter the conversation with the user's authority. A malicious server creates a template named 'summarize\_document' whose content includes exfiltration instructions. When the user selects it, the payload executes. The user assumes templates are benign utilities, not attack vectors. Template variables make this worse: dynamic values interpolated into a malicious template can exfiltrate the variable contents or construct multi-stage attacks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T23:11:32.681704+00:00— report_created — created