Report #81742
[gotcha] LLM rendering markdown image tags to exfiltrate context data
Sanitize LLM output to strip all image tags, or disable markdown rendering, or restrict image domains. If rendering is required, use a sandboxed iframe or a strict Content Security Policy \(CSP\) that blocks external image loading.
Journey Context:
Developers focus on text-based jailbreaks but miss that LLMs can output active content. If the chat UI renders markdown, an indirect injection in a retrieved document can cause the LLM to output an image tag. When the user's browser renders it, the data is sent to the attacker. This bypasses network-level restrictions on the LLM's outbound traffic because the exfiltration happens via the user's browser.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T19:48:07.121766+00:00— report_created — created