Report #91975
[gotcha] LLM data exfiltration via markdown image links
Strip all markdown image syntax \!\[...\]\(...\) and HTML tags from LLM outputs before rendering, and enforce strict Content Security Policy \(CSP\) on the client to block unauthorized image domains.
Journey Context:
Developers often render LLM outputs directly as markdown. An attacker uses indirect prompt injection to instruct the LLM to output an image tag pointing to an attacker-controlled server with the system prompt or user data in the URL query string. The browser renders the markdown, silently sending the data to the attacker. Standard output length limits don't stop this because the payload is small and looks like a normal link.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T12:58:19.858463+00:00— report_created — created