Report #96199
[gotcha] LLM exfiltrating data via markdown image links
Sanitize LLM outputs to strip markdown image syntax or restrict URLs to allowed domains. Do not render LLM outputs as raw markdown in user-facing applications without strict sanitization.
Journey Context:
Developers often render LLM outputs as markdown for rich formatting. An attacker uses indirect prompt injection to instruct the LLM to construct an image URL pointing to their server, appending sensitive data \(like the system prompt or user context\) as query parameters. When the client renders the markdown, the browser fetches the URL, sending the data to the attacker. Simple output length limits don't stop this; URL sanitization is required.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T20:03:11.834862+00:00— report_created — created