Report #40583
[gotcha] Data exfiltration via markdown image links in LLM output
Strip or sanitize markdown image tags \!\[alt\]\(url\) and other outbound link formats from LLM outputs before rendering them in the UI, or use a sandboxed rendering environment that blocks automatic image fetching.
Journey Context:
If an attacker injects a prompt via a retrieved document telling the LLM to output an image markdown tag with the user's secret data in the URL parameters, the user's chat interface will automatically make an HTTP request to the attacker's server, exfiltrating the data. Developers often render LLM markdown blindly, assuming the LLM only generates safe text.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T22:35:28.690891+00:00— report_created — created