HomeGlossaryCross-Site Scripting

Cross-Site Scripting

MITRE ATTACK layer: Initial Access

Cross-Site Scripting (XSS) is a web application attack where an attacker injects malicious client-side scripts into trusted websites that are then executed in a user’s browser. It exploits improper input validation and output encoding rather than flaws in the browser itself.

How is Cross-Site Scripting abused

Attackers inject malicious JavaScript through input fields, URLs, or stored content that a web application fails to sanitize. When a victim loads the affected page, the script executes in the context of the trusted site, allowing attackers to steal session cookies, capture credentials, manipulate page content, or perform actions on behalf of the user.

Why Cross-Site Scripting matters

Cross-Site Scripting enables attackers to hijack authenticated user sessions without breaching the server. A successful XSS attack can lead to account takeover, unauthorized transactions, data theft, or serve as a stepping stone for broader compromise of enterprise web applications.

Real-world example

In late 2025, the U.S. Cybersecurity and Infrastructure Security Agency (CISA) added an actively exploited cross-site scripting (XSS) vulnerability — CVE-2021-26829 — in the OpenPLC ScadaBR industrial control system to its Known Exploited Vulnerabilities (KEV) catalog. Threat activity associated with this flaw included web-based script injection that allowed attackers to manipulate the system’s web interface, demonstrating live exploitation of XSS in operational technology environments. Security teams were urged to patch and mitigate by December 2025 due to confirmed exploitation in the wild.

 

Source

Get the full attack repository

Get our entire attack repository in a single, offline-ready PDF guide, featuring 25+ real-world attacks.

Please enter a valid email.Please enter a email.
By clicking 'Download EBOOK', you agree to processing of personal data according to the Privacy Policy.

Additional Resources

Achieve 442% ROI and reduce patching time by 95% — Forrester TEI Report

See how organizations gained 442% ROI and major efficiency improvements with Endpoint Central.

Read more
Experience enterprise-grade protection proven in real-world tests — AV-Comparatives Report

Discover how Endpoint Central’s antivirus earned recognition through rigorous, real-world security validation in just eight months.

Read more
Simplify endpoint security and build cyber resilience — Endpoint Security For Dummies

Get a clear, practical guide to understanding threats and strengthening your organization’s security.

Read more

Trusted by