Software Securityhome
Fix a findingSearch
Glossary

XSS

Cross-site scripting

Untrusted content is interpreted as script or markup in a victim’s browser. The correct defense depends on the output context: HTML text, an attribute, a URL or a script.

Fix it in your stack
Cross-site scripting (XSS) fix cards (9 stacks) · CWE-79 page
Defined in
MITRE CWE-79

Covered in

All 7 pages that cover XSS in the library

Practice: XSS lab: Render a model’s answer as text instead of active markup · CORS policy lab: Grant CORS to the right origins only · CSP builder lab: Build a strict Content-Security-Policy · HTML sanitization lab: Configure a sanitizer for user comments

Find your next answer

Type to search. Search runs in your browser.

Searches run in your browser, but the host can infer them from the index files they load. The address shows your search so you can bookmark or share it.