improper output handling

Passing model output to a browser, shell, database or other system without validating and encoding it, so injected content becomes an attack such as XSS.

Unescaped output turns a successful injection into script execution or data exfiltration in the user's browser.

In more detail

Treat model output as untrusted input. When rendering it, drop images, escape everything and rebuild only links to destinations you trust; a markdown image pointing at an attacker's server can carry data out in its address. It fell to tenth in the 2026 list.

Related terms

Taught in

References

Certification courses