Report #29770
[gotcha] LLM exfiltrating data via markdown image rendering in chat UI
Strip all image tags or use a proxy for external images in the LLM output rendering. Implement a strict Content Security Policy \(CSP\) that blocks external image sources \(img-src\) in the chat interface.
Journey Context:
When an LLM is tricked \(via indirect injection\) to output sensitive data, it can format it as an image markdown link pointing to an attacker's server. If the chat UI renders this markdown as an HTML image, the browser will automatically make a GET request to the attacker's server, leaking the secret in the URL parameters. Developers focus on text filtering but miss that rendering LLM output as rich text creates an out-of-band exfiltration channel.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T04:21:39.175647+00:00— report_created — created