AgentReadyHomeAgent Listing
Home · AI Security Answers · OWASP LLM Top 10

What is OWASP LLM05 improper output handling and how do I sanitize LLM output before a browser, shell, or SQL?

Grounded & cited · AI agent security

OWASP LLM05 Improper Output Handling occurs when downstream systems trust LLM output without validation, which can lead to vulnerabilities like XSS, SQLi, SSRF, RCE, or privilege escalation when the output is rendered, executed, or passed to tools. To sanitize LLM output, it should be treated as untrusted and controls should be implemented before it interacts with browsers, shells, or SQL databases.

Grounded in

How does your AI agent score?

Get a free, instant AI agent security readiness snapshot — mapped to NIST, OWASP & ISO — then unlock the full report with a prioritized, cited fix-list.

Get the AI Security & Compliance Brief
Grounded, practical guidance for securing AI agents — mapped to NIST, OWASP & ISO. Occasional, and you can unsubscribe anytime.

This AI-generated answer is for guidance only — not a certification, audit, or penetration test. Grounded in the NIST AI RMF, OWASP LLM Top 10, and ISO/IEC 42001 control text; verify applicability to your environment.