Vulnerability · CWE-79

high severityA03:2021 Injection

Cross-Site Scriptingalso known as XSS

XSS lets an attacker inject script that runs in other users' browsers, enabling session theft, credential phishing, and actions performed as the victim.

Impact

Why it matters

Account takeover via stolen sessions, defacement, and client-side data theft.

Detection

How vulnscanners finds it

vulnscanners runs Nuclei templates and OWASP ZAP active scans against authorized targets, and reports Cross-Site Scripting findings with severity, the affected endpoint/parameter, and the evidence needed to confirm and fix them.

Remediation

How to fix it

  1. 01Context-aware output encoding for HTML, attributes, JS, and URLs.
  2. 02Use a strict Content-Security-Policy.
  3. 03Avoid dangerous sinks like innerHTML; sanitize where HTML is required.
  4. 04Mark session cookies HttpOnly and Secure.

References

FAQ

What is Cross-Site Scripting?

XSS lets an attacker inject script that runs in other users' browsers, enabling session theft, credential phishing, and actions performed as the victim.

How does vulnscanners detect Cross-Site Scripting?

vulnscanners runs Nuclei templates and OWASP ZAP active scans against authorized targets, and reports Cross-Site Scripting findings with severity, the affected endpoint/parameter, and the evidence needed to confirm and fix them.

How do I fix Cross-Site Scripting?

Context-aware output encoding for HTML, attributes, JS, and URLs. Use a strict Content-Security-Policy. Avoid dangerous sinks like innerHTML; sanitize where HTML is required. Mark session cookies HttpOnly and Secure.

How serious is Cross-Site Scripting?

Account takeover via stolen sessions, defacement, and client-side data theft.

Related

Scan your target for real.

Point vulnscanners at an authorized domain or IP range and get a severity-ranked report of what's actually exploitable — including Cross-Site Scripting. Credits never expire.