Report #45594
[gotcha] LLM chatbot silently leaking conversation history or private data to external servers via image tags
Render LLM outputs in a sandboxed environment or strip all markdown image syntax \!\[...\]\(...\) and HTML tags before displaying to the user.
Journey Context:
LLMs can be tricked via indirect injection into outputting markdown images with a src URL pointing to an attacker's server, appending sensitive data \(like previous messages\) as query parameters. The browser automatically fetches these images, exfiltrating the data. Developers miss this because they treat LLM output as inert text, not executable HTML/Markdown.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T07:00:15.476144+00:00— report_created — created