Glossary

What is Cross-Site Scripting?

DefinitionCross-site scripting (XSS) is a vulnerability that lets attackers inject malicious scripts into websites viewed by other users.

Example

A comment field runs code that steals cookies.

How to protect yourself

Website owners should use Content-Security-Policy and input validation.

Learn more

Think you can spot cross-site scripting and other tricks? Take our free phishing quiz, or paste a suspicious link into the website safety checker.
Was this page helpful?

← Credit Freeze Data Breach →