Cross-Site Scripting (XSS) is a security attack where someone adds harmful code to a website or web page. The code can then run in another user’s web browser.
XSS often targets websites that accept user input, such as comments, search boxes or online forms. A successful attack can allow an attacker to steal information, change what a page displays or perform actions as the affected user.
Related Terms: Web Security, JavaScript, Browser Security, SQL Injection, Cross-Site Request Forgery, Session Hijacking, Malware, Input Validation, Content Security Policy, Web Application