Web Security
XSS
Cross-Site Scripting (XSS) is a web vulnerability where attackers inject malicious scripts into content that is then executed in victims' browsers. It can be used to steal session cookies, redirect users, deface sites, or keylog passwords. XSS is divided into reflected (non-persistent), stored (persistent), and DOM-based types. Prevention requires output encoding, a strict Content Security Policy, and avoiding dangerous APIs like innerHTML with untrusted data.
Official documentationWhy it matters for your website
- 1Listed in the OWASP Top 10 — one of the most critical web risks
- 2Can lead to data exfiltration, account takeover, or full system compromise
- 3Required to fix before passing security reviews for enterprise customers