Report #84134
[gotcha] LLM data exfiltration via rendered markdown image links
Sanitize LLM output before rendering in the frontend. Strip all image tags, or strictly whitelist allowed domains. Never render raw LLM output as unescaped HTML/Markdown in a browser context.
Journey Context:
Developers focus on what the LLM \*does\* \(tools\) but forget that the output itself is an attack vector if rendered in a browser. If the LLM is tricked into outputting a markdown image pointing to an attacker server with sensitive data in the URL, the user's browser automatically fetches it, exfiltrating the data. Output sanitization is as important as input sanitization.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T23:48:38.720037+00:00— report_created — created