In-depth lesson · bug class
Cross-site scripting (XSS)
What every disclosed XSS report in the index teaches, put together: how it works, how it changed year by year, where it turns up, and things to try. Every point shows the reports it is seen in.
- disclosed reports read
- 6,399
- reports cited in this lesson
- 5,619
- median public bounty
- $800
- highest public bounty
- $101k
Learning XSS reading list Beginner web, step 4
Year by year
19 yearsWhat each year's disclosed reports show, newest first. A year with few reports says less.
| 2001 | 7 |
|---|---|
| 2008 | 2 |
| 2009 | 5 |
| 2010 | 14 |
| 2011 | 20 |
| 2012 | 15 |
| 2013 | 40 |
| 2014 | 110 |
| 2015 | 172 |
| 2016 | 289 |
| 2017 | 371 |
| 2018 | 261 |
| 2019 | 249 |
| 2020 | 418 |
| 2021 | 343 |
| 2022 | 472 |
| 2023 | 442 |
| 2024 | 471 |
| 2025 | 844 |
| 2026 | 775 |
-
2026
New this year3
- Browser engine reports about CSSOM serialisation, parser divergence and sanitizer API gaps, mostly from Chromium and Firefox, become a large share of the batch in the disclosed reports.
- Markdown injection through unescaped name labels in Telegram messages appears as a repeated pattern in the disclosed reports.
- AI chat and assistant features rendering model output or previews as HTML appear as a growing source in the disclosed reports.
Kept working5
- A large cluster of Microsoft SharePoint and Exchange advisories described input not neutralised during web page generation in the disclosed reports.
- Reflected XSS in search parameters landing inside HTML attribute values was a common pattern in the disclosed reports.
-
2025
New this year3
- AI chatbots rendering user messages as HTML appear as a distinct source of XSS in the disclosed reports.
- SVG uploads accepted for logos, avatars, profile pictures and media libraries become a recurring stored XSS route in the disclosed reports.
- HTML injection in signup name fields rendered in verification and password reset emails grows in the disclosed reports.
Kept working5
- Stored XSS in chat, profile, name and description fields that admins later view was widespread in the disclosed reports.
- Reflected XSS in search bars and query parameters was a common finding in the disclosed reports.
-
2024
New this year3
- Chaining XSS with CSRF, clickjacking, service workers and OAuth flows grows into a labelled pattern in the disclosed reports.
- Chatbot features rendering user-supplied HTML or URLs appear as a new target class in the disclosed reports.
- The PDF.js font matrix flaw appears across Firefox, GitLab and other viewers in the disclosed reports.
Kept working5
- File upload features with content type, extension and filename tricks were a recurring theme in the disclosed reports.
- Reflected XSS in a single URL parameter on a subdomain, often found by subdomain enumeration, was a common pattern in the disclosed reports.
Earlier years16
Where it is found
1,478The features and places the reports found it in, most-reported first.
-
phpMyFAQ was a frequent source of stored and reflected XSS across comments, exports, logs and settings fields.
Seen in 21 reports
-
A question and answer platform was repeatedly reported for cross-site scripting, including stored variants.
Seen in 16 reports
-
A CMS was repeatedly reported for script in data object fields, document settings, redirects and thumbnail configuration.
Seen in 12 reports
-
Site search boxes, knowledgebase search, search forms and search fields echoed into results pages.
Seen in 12 reports
-
Self-hosted FAQ applications were reported for both stored and reflected script.
Seen in 11 reports
Technologies in these reports16
Root causes
2,345The mistakes in the code or configuration behind the reports.
-
The server did not sanitise crafted web requests before reflecting or storing them in pages.
Seen in 48 reports
-
Servers failed to sanitise or encode user-supplied input in a crafted web request before reflecting or storing it.
Seen in 23 reports
-
Name fields were stored and rendered without sanitisation or HTML encoding in pages, admin panels and emails, including verification, meeting notifications, signup, newsletter, return and invitation emails, contacts, follow buttons, dashboards and account pages.
Seen in 20 reports
-
User input was reflected into HTML responses without output encoding.
Seen in 19 reports
-
Crafted web requests were not sanitised before being reflected or stored in pages.
Seen in 18 reports
Things to try
The most-reported tests in the largest contexts. Tick what you have tried; ticks stay in this browser and carry over to the full checklist. Test only what a program's scope allows.
ticked in this lesson
URL parameters and reflected input
of 3 ticked-
Seen in 6 reports
-
Seen in 5 reports
-
Seen in 4 reports
DOM sinks and client-side rendering
of 3 ticked-
Seen in 9 reports
-
Seen in 3 reports
-
Seen in 3 reports
Stored content and page editing
of 3 ticked-
Seen in 4 reports
Bypasses and variations
743How reports got past filters, encoders and other defences.
-
Break out of the surrounding attribute and inject an SVG element with an onload handler.
Seen in 4 reports
-
Chain a login CSRF so the victim is signed into the attacker's account and the self-XSS becomes reachable.
Seen in 3 reports
-
Encoding tricks such as base64, HTML entities and double URL encoding got payloads past WAFs.
Seen in 3 reports
-
The endpoint's Content Security Policy allowed a wildcard script host and lacked a base-uri directive, so injected markup could load attacker-controlled scripts on a mobile JavaScript endpoint.
Seen in 3 reports
-
A cross-origin iframe can bypass same-origin policy by opening a javascript: URL in a new window when multiwindow support is disabled.
Payouts
653 paidPublic bounties in US dollars, from the data. 653 of 6,399 reports show an amount.
- a quarter paid up to
- $450
- median
- $800
- three quarters paid up to
- $2,100
- highest
- $101k
One in ten paid reports was paid $5,000 or more.
| Severity | Reports | Paid | Median | Highest |
|---|---|---|---|---|
| Critical | 118 | 7 | $1,000 | $16k |
| High | 886 | 78 | $1,419 | $14k |
| Medium | 1,437 | 128 | $625 | $9,400 |
| Low | 390 | 90 | $200 | $1,068 |
| Informational | 86 | 3 | $1,000 | $1,925 |
| Unrated | 3,482 | 347 | $1,000 | $101k |
Highest-paid reports5
-
$100,500 -
$62,500 -
$40,000 -
$35,000 -
$30,000
Typical fixes
476How programs fixed it, as the reports describe.
-
Apply context-appropriate output encoding for HTML, attribute and JavaScript contexts.
Seen in 20 reports
-
Sanitise uploaded files and serve them with a safe content type or force download.
Seen in 9 reports
-
HTML-encode filenames, names and user text before inserting them into pages, and use text insertion rather than HTML insertion where markup is not intended.
Seen in 6 reports
-
Properly encode and validate user-supplied input reflected in URLs.
Seen in 5 reports
-
Encode name fields before inserting them into email templates.
Seen in 4 reports
Guides and techniques
View allThe best explainers, cheat sheets and technique posts on XSS, from around the web.
-
Encoding Differentials: Why Charset MattersExplains how charset mismatches between browser, server and database let attackers slip XSS and SQL injection past filters.
Technique sonarsource.com
-
DOM InvaderPortSwigger introduces DOM Invader, a browser tool for finding DOM XSS and prototype pollution sinks during testing.
portswigger.net
-
Escaping '<' and '>' in attributes – how it helps protect against mutation XSSExplains the HTML spec change escaping angle brackets in attributes and how it mitigates mutation XSS in sanitizers.
Explainer bughunters.google.com
-
PimpMyCaido #1: Hunt client-side vulnerabilities with DOMLogger++Shows how DOMLogger++ with Caido monitors JavaScript sinks in real time to surface DOM XSS and prototype pollution.
yeswehack.com
-
When File Uploads Break XSS DefensesExplains why stored XSS payloads fire via file uploads but not manual forms, due to inconsistent sanitisation across input paths.
Technique machevalia.blog
Keep learning
Where this lesson fits, and what to read next.
Lessons on single techniques in XSS
Lessons to read next
How this is made: our model read every listed XSS report in the index (our own summary where we have one, otherwise the title and the platform's label), listed the patterns, and merged them. Each point was kept only if the reports it cites exist, are listed and belong here; payouts are computed from the data, not written by the model. Read the originals before relying on a point. Generated 28 Nov 2026 from 6,398 reports. All XSS reports.