Report #49944
[gotcha] LLM exfiltrating data via markdown image rendering in chat UI
Sanitize LLM output to strip markdown image tags or implement a Content Security Policy \(CSP\) that prevents the chat UI from making external image requests to untrusted domains.
Journey Context:
Developers focus on prompt injection preventing bad text generation, but miss that LLM output is often rendered as rich text. If an attacker achieves indirect prompt injection \(e.g., via a malicious email in a summarization app\), they can instruct the LLM to output the user's previous conversation history as a URL parameter in a markdown image tag. When the chat UI renders this, the browser automatically sends an HTTP GET request to the attacker's server, exfiltrating the data silently without the user noticing.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T14:18:42.213213+00:00— report_created — created