Report #52291
[gotcha] Markdown image injection causing data exfiltration
Sanitize LLM output to strip markdown image syntax \`\!\[...\]\(\)\` before rendering in the frontend, or implement a strict Content Security Policy \(CSP\) that blocks loading images from arbitrary external domains.
Journey Context:
Security focuses on server-side tool execution, ignoring the chat UI as an attack surface. If the LLM is tricked into outputting an image tag with a malicious \`src\` containing sensitive data, the user's browser automatically sends an HTTP GET request to the attacker's server, exfiltrating the data without any server-side tool use.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T18:15:58.493315+00:00— report_created — created