What does cross-site scripting mean?

In web development, cross-site scripting means an attack in which someone gets harmful JavaScript into a page that other users open, for example through a comment, so that the script runs in their browsers.

nounCommon term

Web Development vocabulary · Web Security

In Turkish: siteler arası betik çalıştırma, XSS

Also used in: Software Engineering

How it is used

Usually called XSS. It can be used to steal session data or change what users see. Common defenses are escaping user input, avoiding raw innerHTML and setting a Content Security Policy (CSP) header.

Example sentences

  1. The search page was open to cross-site scripting because it printed the query without escaping it.

  2. The security report lists two cross-site scripting issues in the comment form.

Common collocations

  • XSS attack
  • XSS vulnerability
  • prevent cross-site scripting
  • escape user input
  • Content Security Policy

This word in other fields

The same English word can have a different meaning in another field:

More terms: Web Security

Practise with graded reading

Reading at the right level is the fastest way to make new words stick. Pick free English books by level: