Hexret

AI Security · Improper output handling

Improper Output Handling

Also known as: Insecure Output Handling

Untrusted model output reaches a downstream component without controls appropriate to its use. Generated markup through innerHTML can enable Cross-Site Scripting. Generated code merged without security review can introduce vulnerabilities. Apply consumer-specific validation, encoding, authorization, and review at adoption or use. A well-formed tool call still needs separate authorization.

Where you practice it

Related terms