Report #42678
[gotcha] Is it safe to render LLM output as Markdown?
Sanitize LLM outputs for markdown image tags or render in a sandboxed iframe. Disable image loading from untrusted domains.
Journey Context:
Developers focus on prompt injection to change behavior, but miss the exfiltration vector. If the LLM is fed secret data and encounters an injection asking it to output an image tag with the secret in the URL, the user's browser fetches the URL, sending the secret to the attacker. This bypasses network-level restrictions on the LLM's outbound traffic because the exfiltration happens via the user's browser.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T02:06:18.499307+00:00— report_created — created