Skip to content

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.

reports cited in this lesson
5,619

Learning XSS reading list Beginner web, step 4

Year by year

19 years

What each year's disclosed reports show, newest first. A year with few reports says less.

Reports per yearPeak 2025: 844
Reports per year
20017
20082
20095
201014
201120
201215
201340
2014110
2015172
2016289
2017371
2018261
2019249
2020418
2021343
2022472
2023442
2024471
2025844
2026775
  1. 2026

    775 reports · median $900

    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.
    and 3 more
  2. 2025

    844 reports · median $675

    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.
    and 3 more
  3. 2024

    471 reports · median $1,000

    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.
    and 3 more
Every point, year by year

Where it is found

1,478

The features and places the reports found it in, most-reported first.

  1. phpMyFAQ was a frequent source of stored and reflected XSS across comments, exports, logs and settings fields.

    Seen in 21 reports
  2. A question and answer platform was repeatedly reported for cross-site scripting, including stored variants.

    Seen in 16 reports
  3. A CMS was repeatedly reported for script in data object fields, document settings, redirects and thumbnail configuration.

    Seen in 12 reports
  4. Site search boxes, knowledgebase search, search forms and search fields echoed into results pages.

    Seen in 12 reports
  5. Self-hosted FAQ applications were reported for both stored and reflected script.

    Seen in 11 reports
View all 1,478

Root causes

2,345

The mistakes in the code or configuration behind the reports.

  1. The server did not sanitise crafted web requests before reflecting or storing them in pages.

    Seen in 48 reports
  2. Servers failed to sanitise or encode user-supplied input in a crafted web request before reflecting or storing it.

    Seen in 23 reports
  3. 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
  4. User input was reflected into HTML responses without output encoding.

    Seen in 19 reports
  5. Crafted web requests were not sanitised before being reflected or stored in pages.

    Seen in 18 reports
View all 2,345

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

Other

of 3 ticked
  • Seen in 6 reports
  • Seen in 6 reports
  • Seen in 3 reports
More in Other

URL parameters and reflected input

of 3 ticked
  • Seen in 6 reports
  • Seen in 5 reports
  • Seen in 4 reports
More in URL parameters and reflected input

DOM sinks and client-side rendering

of 3 ticked
  • Seen in 9 reports
  • Seen in 3 reports
  • Seen in 3 reports
More in DOM sinks and client-side rendering

Stored content and page editing

of 3 ticked
More in Stored content and page editing
View more things to try

Bypasses and variations

743

How reports got past filters, encoders and other defences.

  1. Break out of the surrounding attribute and inject an SVG element with an onload handler.

    Seen in 4 reports
  2. Chain a login CSRF so the victim is signed into the attacker's account and the self-XSS becomes reachable.

    Seen in 3 reports
  3. Encoding tricks such as base64, HTML entities and double URL encoding got payloads past WAFs.

    Seen in 3 reports
  4. 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
  5. A cross-origin iframe can bypass same-origin policy by opening a javascript: URL in a new window when multiwindow support is disabled.

    Seen in 2 reports
View all 743

Payouts

653 paid

Public 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.

SeverityReportsPaidMedianHighest
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

Typical fixes

476

How programs fixed it, as the reports describe.

  1. Apply context-appropriate output encoding for HTML, attribute and JavaScript contexts.

    Seen in 20 reports
  2. Sanitise uploaded files and serve them with a safe content type or force download.

    Seen in 9 reports
  3. 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
  4. Properly encode and validate user-supplied input reflected in URLs.

    Seen in 5 reports
  5. Encode name fields before inserting them into email templates.

    Seen in 4 reports
View all 476

Guides and techniques

View all

The best explainers, cheat sheets and technique posts on XSS, from around the web.

Keep learning

Where this lesson fits, and what 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.