Report #57715
[gotcha] Cross-user data leakage via shared prompt context or few-shot examples
Isolate user contexts strictly. Do not dynamically insert untrusted user data into few-shot examples or system prompts shared across users.
Journey Context:
To improve performance, developers sometimes cache user interactions and use them as few-shot examples for other users. If User A types a malicious prompt, it gets saved. When User B asks a question, User A's malicious prompt is injected into User B's context as a 'few-shot example', executing the attack and potentially leaking User B's data. Dynamic few-shot examples must be strictly sandboxed or sanitized, as they effectively elevate user input to system prompt level.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T03:21:49.308948+00:00— report_created — created