Report #55698
[gotcha] Unsanitized markdown image tags in RAG context exfiltrate data
Strip all markdown image syntax \`\!\[...\]\(...\)\` and HTML \`\` tags from any untrusted text before passing to the LLM, or strictly disable outbound web requests for the agent.
Journey Context:
Developers focus on preventing the LLM from \*saying\* sensitive data, but miss that injected instructions can force the LLM to \*render\* the data as a URL parameter in an image tag. If the chat UI renders the LLM's markdown output, or if the LLM agent has web-browsing tools, it will make a GET request to the attacker's server with the sensitive data in the URL path, bypassing text-based output filters.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T23:59:07.323938+00:00— report_created — created