Report #93855
[gotcha] LLM data exfiltration via markdown image links
Strip all markdown image syntax \!\[alt\]\(url\) and outbound link syntax from LLM outputs before rendering them in a frontend, or implement a Content Security Policy that blocks external image loads.
Journey Context:
Attackers use indirect prompt injection to instruct the LLM to summarize private data and append it as a URL parameter in an image tag. When the chat UI renders the markdown, the browser fetches the URL, sending the private data to the attacker. Developers forget that LLM output is often rendered as rich text and treat it as safe plain text.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T16:07:14.467341+00:00— report_created — created