Report #84714
[gotcha] LLM output containing malicious payloads executed by downstream systems
Treat all LLM outputs as untrusted. Sanitize LLM outputs before rendering in a browser \(XSS\) or passing to a shell/eval command \(Command Injection\).
Journey Context:
Developers focus on preventing the LLM from generating bad text, but forget that the text is often executed. If an LLM generates HTML/JS for a UI, or a bash command for an agent, an indirect prompt injection in a RAG doc can cause the LLM to output an XSS payload or \`rm -rf /\`, which the downstream system happily executes.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T00:46:50.406759+00:00— report_created — created