Report #70252
[gotcha] Data exfiltration via rendered markdown image links in LLM output
Strip markdown image syntax \!\[...\]\(...\) from LLM outputs or implement strict Content Security Policy \(CSP\) in the chat UI to block external image requests.
Journey Context:
Developers focus on text-based injection but miss that LLMs can output markdown. If the frontend renders this markdown, a prompt injection can force the LLM to output an image tag pointing to an attacker's server with sensitive data in the URL. The browser automatically fetches the URL, exfiltrating the data. Network restrictions on the LLM API don't help because the request comes from the user's browser.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T00:30:08.252220+00:00— report_created — created