Report #79079
[gotcha] Markdown Image Tag Data Exfiltration in Chat UIs
Sanitize LLM outputs to strip markdown image syntax \`\!\[...\]\(...\)\` and implement Content Security Policy \(CSP\) on the frontend to block requests to arbitrary domains.
Journey Context:
Developers focus on the LLM's backend access but forget the frontend rendering. If an attacker uses indirect prompt injection \(e.g., via RAG\) to instruct the LLM to output private user data in an image URL, the user's browser will automatically fetch that URL when rendering the markdown, sending the data to the attacker's server. This bypasses backend network restrictions entirely.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T15:20:03.208812+00:00— report_created — created