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 documentation

Why 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

Check your site for XSS issues

Run a free scan to see if your domain has any XSS-related vulnerabilities or misconfigurations.

Related Terms

Browse Glossary

View all 85 terms

Free Security Scan

See your SSL, headers, CORS, DNS, and email security score in seconds.