Application & Software SecurityIntermediateAttack Technique1 validated evidence record

Cross-Site Scripting (XSS)

30 sec

A web vulnerability that allows attacker-controlled script to execute in another user's browser within a trusted application context.

Know

What is Cross-Site Scripting?

A web vulnerability that allows attacker-controlled script to execute in another user's browser within a trusted application context. The important operational question is how Cross-Site Scripting changes trust, access, exposure, detection, or response in a real environment—not merely how the term is defined.

Why it matters

A web vulnerability that allows attacker-controlled script to execute in another user's browser within a trusted application context. Understanding the prerequisites, observable behavior, and follow-on impact helps defenders recognize where this technique fits in an attack chain.

Evidence, not hype

Validated in the real world

Every record is labeled by evidence type and source strength so an incident, a standard, and emerging research are never presented as if they are the same thing.

Standards / FrameworkStandard / framework

OWASP standards and guidance validate core web and API security risks

2026OWASP FoundationSoftware and applications

OWASP ASVS and API Security guidance provide testable requirements for application and API controls, while OWASP prevention guidance covers injection and cross-site scripting as common implementation weaknesses requiring secure coding and validation.

Why this is evidence

It grounds the application-security entries in openly maintained technical standards used by developers, testers, and security teams.

See the source — OWASP: Application Security Verification Standard

Understand the mechanics

How it works

  1. 1

    An adversary identifies a condition where cross-site scripting can create access, control, disclosure, or evasion.

  2. 2

    The technique is executed directly or combined with credentials, exploitation, social engineering, or trusted functionality.

  3. 3

    Successful activity creates an attacker advantage such as execution, privilege, persistence, movement, collection, or impact.

  4. 4

    Defenders correlate identity, endpoint, application, cloud, and network evidence to determine scope and interrupt the chain.

Practice

What to watch for

  • Activity consistent with cross-site scripting in relevant security telemetry
  • Unexpected authentication, privilege, execution, network, or data-access behavior
  • New or unusual infrastructure, processes, tokens, requests, or administrative actions
  • Correlated events that match an adversary technique rather than normal business activity

Perform

What to do

  1. 1

    Contain the risky activity without destroying useful evidence.

  2. 2

    Determine which identities, systems, applications, data, and sessions are affected.

  3. 3

    Revoke exposed access, isolate compromised assets, or block malicious infrastructure as appropriate.

  4. 4

    Hunt for related cross-site scripting activity and adjacent attacker behaviors before declaring containment.

How to reduce the risk

  • Use secure design and threat modeling early.
  • Validate untrusted input and enforce authorization server-side.
  • Automate dependency, code, and configuration testing in CI/CD.
  • Log security-relevant application and API activity.

Business impact

  • Data exposure
  • Unauthorized actions
  • Account compromise
  • Application outage

What different roles should do

Security

  • Correlate evidence across security domains.
  • Contain the attack path and hunt for follow-on activity.

IT / Engineering

  • Preserve telemetry and configuration context.
  • Support safe remediation and recovery.

Framework & standards context

  • CWE-79 / OWASP XSS

Keep learning

Source transparency

Authoritative sources

Last reviewed: 2026-09-02