Cross Site Scripting (XSS) involves injecting malicious JavaScript code into a vulnerable web application that is then executed by a victim's browser and can be used to steal cookies and impersonate users. The document discusses how XSS works, variations of the attack, and how to secure applications and test for vulnerabilities. It also explains how the AppShield web application firewall and AppScan scanning tool from Sanctum protect against and detect XSS attacks.