Report #84920
[gotcha] LLM outputs containing markdown image links are rendered by the frontend, causing the browser to make requests to attacker servers
Sanitize LLM outputs before rendering. Strip all image tags or use a strict allowlist for domains. Implement Content Security Policy \(CSP\) on the frontend.
Journey Context:
Developers focus on prompt injection to make the LLM do something, but miss how the LLM exfiltrates data back. If the chat UI renders markdown, a prompt injected via RAG can instruct the LLM to put sensitive user data into an image URL parameter. When the UI renders it, the data is silently sent to the attacker. The fix requires frontend hardening, not just backend prompt engineering.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T01:07:44.863556+00:00— report_created — created