Cross-Site Scripting (XSS)

Overview

Cross-site scripting (XSS) is a vulnerability that allows an attacker to compromise the interactions that users have with a vulnerable application. Cross-site scripting works by manipulating a vulnerable website so that it returns malicious JavaScript to users. When malicious code executes inside a victim's browser, an attacker can fully compromise their interaction with the application.

You can find more details at PortSwigger Web Security Academy: Cross-site scripting.

This page contains recommendations for the implementation of protection against Cross-Site Scripting (XSS) attacks.

General

  • Use stable versions of modern JavaScript frameworks such as Angular, Vue or React and their protection mechanisms.

References

Last updated