Report #87906
[gotcha] LLM exfiltrating context via markdown image rendering
Sanitize LLM output to strip markdown image syntax \!\[...\]\(...\) or implement a strict Content Security Policy \(CSP\) on the chat UI to block image loads to untrusted domains.
Journey Context:
Developers focus on text-based safety filters but forget that chat UIs render markdown. An indirect prompt injection can instruct the model to encode stolen secrets into the URL of an image tag. When the UI renders this, the browser automatically sends an HTTP GET request to the attacker's server, exfiltrating the data without the user or developer realizing.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T06:08:04.902503+00:00— report_created — created