Cross-Site Scripting

XSS executes attacker-controlled JavaScript in a victim’s browser in the security origin of the target site, inheriting that origin’s DOM, cookies, tokens and same-origin requests.

What it is

XSS is an output-handling failure: untrusted data crosses from “data” into “code” because it reaches an HTML, attribute, URL, CSS or JavaScript context without the encoding or sanitization that context requires (Excess XSS, OWASP Prevention Cheat Sheet).

The trust boundary that breaks is the same-origin policy’s assumption that everything served by an origin was written by that origin. Once injected, the script is the origin: it can read document.cookie (absent HttpOnly), read localStorage/sessionStorage tokens, call authenticated APIs with the victim’s cookies, read CSRF tokens out of the DOM, and rewrite what the user sees. Same-origin protections (SOP, SameSite Cookies, CSRF tokens) are all moot from inside the origin.

Two orthogonal axes classify a bug; a real finding is one point on each (e.g. stored-DOM, reflected-DOM):

AxisValues
Persistence / deliveryReflected XSS (request → immediate response) · Stored XSS (persisted, served to others) · Blind XSS (stored, fires in a UI you can’t see)
Where the injection executesServer-rendered HTML vs. DOM-Based XSS (client-side source → sink, possibly never on the wire; OWASP “Type-0”)

Why it matters

“It’s just alert(1)” is the most common triage downgrade, and it is wrong: the primitive is “run arbitrary code as the user, in the app” (Dionach).

Impact ladder — prove the highest rung you can reach:

  1. Data access / actions as the victim — read pages and API responses, perform state-changing requests, steal CSRF tokens, fake login forms for credential harvesting, keylogging (Dionach).
  2. Session theft → Account Takeover — cookie exfil, or JWTs in localStorage, which SPAs commonly use and which no HttpOnly flag protects (Beyond alert(1)); SDK abuse to mint signed JWTs and live AWS STS creds (DOM XSS → ATO chain).
  3. Privilege Escalation — stored payload rendered in an admin’s session: contributor → admin (The Events Calendar), forced talk acceptance (Pretalx CVE-2026-41241).
  4. Remote code execution — when the renderer is privileged (Electron/Tauri desktop apps, browser-internal pages) or the admin session can upload code (WordPress plugin upload, Magento PHAR, Arista command injection). See Remote Code Execution.
  5. Mass impact — CDN/cache-poisoned XSS hitting every visitor (PayPal, Cloudflare /cdn-cgi/image/), shared components on thousands of shops, universal XSS in browser extensions.

Severity drivers: pre-auth vs. post-auth injection; user interaction (stored/zero-click > one-click > self-XSS); victim privilege (admin/staff consoles); where tokens live (HttpOnly cookie vs. localStorage); presence of an enforced Content Security Policy; and whether the renderer has Node/OS reach.

It is exploited in the wild, not just in bounties. Zimbra CVE-2025-48700 (10k+ exposed servers, CISA KEV) and CVE-2025-66376 (stored XSS via CSS @import in email HTML, used by a Russian APT against Ukraine — “Operation GhostMail”); Exchange OWA CVE-2026-42897 (crafted email → JS in OWA, exploited as a zero-day); ShinyHunters used multiple XSS bugs in Canvas LMS to obtain admin sessions and deface login portals; OpenPLC ScadaBR CVE-2021-26829 added to KEV for HMI defacement. CISA and the FBI issued a Secure-by-Design alert specifically on eliminating XSS (CISA/FBI alert).

How it works

The injection point’s context determines the breakout; the delivery determines who is hit and how.

ContextTypical breakout (illustrative)
HTML body<svg onload=alert(1)> (when <script> is stripped)
Quoted attribute"><svg onload=…> or stay inside: " autofocus onfocus=alert(1) x="
JS string'-alert(1)-', or </script><svg onload=…>
URL / href / locationjavascript: scheme
Template expressionAngularJS {{…}} sandbox escape (client-side template injection)

Variants

  • Reflected XSS — payload rides in the request (query, path, header, body) and is echoed back. Delivery is social (link, auto-submitting form, open-redirect chain). Heavily represented in edge/SSO products: Siemens Teamcenter login redirect (CVE-2026-58113), PAN-OS GlobalProtect (CVE-2025-0133), Citrix NetScaler SAML RelayState (CVE-2025-12101).
  • Stored XSS — payload is persisted (profile fields, comments, filenames, markdown, ID3 tags, slugs, custom properties) and replayed to every viewer; no click required. Second-order variants: stored safely in one context, rendered unsafely in another.
  • Blind XSS — stored XSS whose sink is an internal tool (support desk, admin panel, log/analytics viewer). Confirmed only by an out-of-band callback; viewers are typically privileged.
  • DOM-Based XSS — client JS moves data from a source (location.*, document.referrer, window.name, postMessage, cookies, storage) to a sink (innerHTML, document.write, eval, location = …, dangerouslySetInnerHTML, v-html). Fragment (#…) payloads never reach the server, defeating server-side WAFs and logs. Dominant in SPAs. postMessage handlers are a recurring cross-origin source: missing or substring (hostname.includes(...)) origin checks feeding eval, location.href or innerHTML (bblabs, foorw1nner).
  • Mutation XSS — beats a correct sanitizer: sanitize → serialize → re-parse isn’t idempotent, so markup the sanitizer judged inert mutates into live markup on innerHTML re-insertion (namespace confusion, node flattening, XML/PI/CDATA differentials).
  • SVG and File Upload XSS — the uploaded file is the script: SVG/HTML served same-origin and inline executes as the app’s origin.
  • Client-side template injection — user input inside an AngularJS-compiled region is evaluated as an expression; with a sandbox escape this is XSS even when HTML is perfectly encoded (XSS without HTML). Server-side sibling: Server-Side Template Injection / JavaScript Template Engine SSTI.
  • Self-XSS — fires only in the attacker’s own session; not reportable alone, but escalable (see Exploitation).

Where to find it

Sinks and features

  • Anything that renders user content: profiles (name, bio, avatar), comments, chat, posts, rich-text/WYSIWYG editors, markdown renderers, email HTML, notification and email templates.
  • Non-obvious stored fields: filenames, ID3 tags (Ampache), post slugs (WriteFreely), topic/MIME names (MQTTX), custom-property options (GitHub Enterprise Server), Semantic MediaWiki property labels.
  • Upload paths: SVG avatars, HTML/“image” uploads with trusted client Content-Type, presigned-S3/CDN hosts (Unrestricted File Upload).
  • Internal/back-office consumers: ticketing, moderation queues, log and analytics dashboards, order processing — fed by feedback forms, User-Agent/Referer, logged search queries (Blind XSS).
  • Redirect and SSO parameters: redirect, returnUrl, RelayState, error-echoed identifiers (Kubeflow pod names, GotoHTTP sn).
  • HTML-to-PDF/report generators — XSS there runs server-side; see SSRF in PDF and HTML Renderers and the dompdf RCE below.
  • Desktop and extension renderers: Electron (nodeIntegration, contextIsolation, preload bridges, IPC) (Electron pentesting), Tauri, VS Code extensions, browser extensions.

Framework escape hatches — auto-escaping covers the HTML-body case only (Why React didn't kill XSS):

  • React dangerouslySetInnerHTML, Vue v-html, Angular [innerHTML]/bypassSecurityTrust*, jQuery .html(), Alpine x- directives.
  • Helper/library bugs: Rails strip_tags doesn’t encode quotes, so output inside an attribute breaks out (GHSA-rq8q-p985-fjq7); Jinja2 xmlattr with spaced keys injects attributes (CVE-2024-22195); vue-i18n with escapeParameterHtml: true (CVE-2025-53892); Angular template-compiler schema gap via SVG animation/MathML (CVE-2025-66412); Django admin rendering URLField as a link without a scheme check → javascript: (CVE-2026-15920).
  • See also Python Web Framework Security.

How to test

  1. Map inputs and outputs. Inject a unique marker per field/parameter; grep every rendered surface — your view, other users’ views, admin tooling, exports, emails, PDFs. Burp Repeater for reflections; correlate stored input → output (PortSwigger reflected, PortSwigger stored).
  2. Identify context and filtering. Send canary characters (kq9z'"<>) and see which survive and how they’re encoded. Raw " with encoded <> → attribute-only injection. At scale, kxss reports unfiltered chars per parameter.
  3. Craft the context-appropriate breakout (table above). Confirm execution, not reflection.
  4. Trace client-side flows. Use DOM Invader to taint sources and flag controllable sinks, including postMessage, DOM clobbering and prototype-pollution gadgets (DOM-Based XSS). Test fragment, window.name, cookie and storage sources.
  5. Spray blind probes. Callback payloads (XSS Hunter Express, ezXSS) into fields consumed by staff tooling and into headers; wait days (Blind XSS, Out-of-Band Detection).
  6. If blocked, characterize the filter before throwing payloads: which token triggers the block; then step just outside it (XSS Filter Bypasses). If a sanitizer (DOMPurify) is in play, check version/config and go to Mutation XSS.
  7. If execution is blocked by CSP, read the policy: unsafe-inline, wildcards, allowlisted JSONP/library hosts, upload-able allowlisted hosts, nonce reuse, policy injection, form-action gaps (Content Security Policy).
  8. Escalate and prove impact (next section); write it up per Writing Bug Bounty Reports.

Checklist

  • Every reflected parameter, path segment and header tested, including redirect/RelayState/error messages
  • Every stored field rendered in every surface (own, other users, admin, email, export, PDF)
  • Rich text / markdown: javascript: links, raw HTML, sanitizer version
  • Uploads: SVG and HTML with spoofed Content-Type; serving origin, Content-Disposition, nosniff
  • DOM: location.hash/search, postMessage handlers (origin check present? exact match or substring? which event.data fields reach which sink? fix behind a feature flag?), window.name, cookie-read sinks
  • AngularJS / template regions for {{…}} evaluation
  • Blind probes in contact/support forms, User-Agent, Referer, logged searches
  • CSP header and <meta> reviewed; Trusted Types present?
  • Session token location (HttpOnly cookie vs. localStorage) recorded for impact
  • Desktop/extension renderer? Check for Node/IPC reach

Exploitation and escalation

XSS rarely stands alone; impact comes from chaining it with adjacent weaknesses — open redirects, CSRF, weak CSP, token leakage via postMessage, admin functions, file upload (Microsoft: Weaponizing XSS; Vulnerability Chaining).

  • → Account Takeover. Exfiltrate the session cookie or localStorage JWT; change email/password via same-origin API calls; abuse OAuth flows — Salt Labs paired OAuth “log in with” weaknesses with XSS against Hotjar and Business Insider (OAuth+XSS; OAuth 2.0 Vulnerabilities). GitHub Enterprise Server stored XSS was used to add an attacker SSH key to another user.
  • → Privilege escalation. Plant a stored payload where an admin will look; perform admin actions in their session (Pretalx, The Events Calendar).
  • → RCE via the admin panel. WordPress pre-auth reflected XSS CVE-2026-64638 (“XSS2Shell”): an admin who visits the page lets the script create application passwords and upload a plugin (CVE-2026-64638). Arista NGFW: XSS (CVE-2025-6979) steals admin credentials, then command injection gives root (Bishop Fox). FortiSandbox reflected XSS CVE-2025-52436 rated as unauthenticated command execution. Magento 2.3.1 stored XSS → PHAR deserialization; PivotX CVE-2025-52367.
  • → RCE via privileged renderers. Electron/desktop: Opera My Flow, MeshCentral, DbGate (CVE-2026-34725), Storybook dev server via WebSocket. Tauri v2 broken via chaining — “XSS is the new RCE” (OWASP AppSec USA 2026). VS Code Live Preview: a malicious site could enumerate and exfiltrate local files via the extension’s local server (fixed 0.4.16).
  • → Server-side impact via renderers. A low-severity reflected XSS became RCE when injected CSS made dompdf cache a “font” with a .php extension, later requested directly (dompdf 0day). See SSRF in PDF and HTML Renderers.
  • → Universal XSS. uBlock Origin (MV2 Firefox): a website drove the element picker into adding a trusted filter, whose scriptlets run JS on any site (uBO UXSS). Claude Chrome extension “ShadowPrompt”: a DOM XSS in a CAPTCHA component on an allowlisted *.claude.ai subdomain enabled zero-click prompt injection (ShadowPrompt; Prompt Injection).
  • Self-XSS → real XSS. Uber: CSRF on OAuth login/logout plus CSP-controlled redirects logged the victim into the attacker’s account (where the payload fires) and back out (Whitton). Credentialless iframes let a self-XSS run alongside the victim’s real session when the login form is CSRF-able or clickjackable (slonser). Stored XSS on a sibling host can toss cookies to force logout/login flows (cookie tossing; Session Management).
  • Mass/propagating. Cache poisoning turns a single injection into one served to everyone (PayPal $18.9k; Cloudflare /cdn-cgi/image/); stored XSS in a shared webshop component hit thousands of shops.
  • No-script exfil. Under default-src 'none', an injected self-posting form still steals credentials if form-action is missing (Content Security Policy).

Bypassing defenses

  • WAFs / blocklists → XSS Filter Bypasses. Characterize the exact rule, then step out: Akamai blocked JS keywords adjacent to (, so top["setTimeout"](name) passed; tags blocked except custom ones → <xss id=x onfocus=… tabindex=1>#x; brute the permitted tag/attribute set; parentheses-free calls (alert`1` , throw onerror=eval,…); entity/URL encoding; ASP.NET duplicate-parameter concatenation splitting a payload past the WAF (HPP; see Server-Side Parameter Pollution); polyglots that fire in many contexts.
  • Fragment and side channels. # payloads and window.name never hit the WAF (DOM-Based XSS).
  • Post-sanitizer rewriting. Code that modifies the string after DOMPurify returns voids the sanitization: Chess.com’s extract-comments → sanitize → restore pipeline let a planted placeholder token receive raw markup inside an attribute (XENOPS; XSS Filter Bypasses).
  • Client-side protection layers. NoScript’s regex XSS filter missed div-triggerable event handlers, and its Chromium <meta> CSP injection skipped SVG documents (SRLabs).
  • Sanitizers → Mutation XSS. DOMPurify has a long bypass history (MathML/<style> comment mutation, nesting-depth flattening, __depth clobbering, XHTML-mode PI/CDATA differentials, dirty-namespace data- attrs, <selectedcontent>); each fix was re-broken. Double parsing — the page’s own JS re-reads the raw URL after server sanitization — revives what the first pass removed.
  • SVG sanitizers → SVG and File Upload XSS. Namespace-prefixed x:script/x:onload (Penpot CVE-2026-133704); svg-hush serialized namespace URIs unescaped (Cloudflare).
  • Upload MIME checks. Trusting the client Content-Type lets xss.html be stored as image/png and served as HTML.
  • CSP → Content Security Policy. unsafe-inline/wildcards/data:; JSONP or AngularJS gadgets on allowlisted hosts (unless strict-dynamic); user-uploadable allowlisted hosts; predictable or reused nonces; reflected input inside the policy; URL-parser confusion returning a laxer policy for the same body (Netlify image CDN; URL Parser Differentials); script gadgets already in the app (PayPal: old Bootstrap, custom youtube.js).
  • HttpOnly cookies stop cookie reads, not same-origin requests — act in-session instead, or target tokens in localStorage/the DOM.

Real-world cases

  • Zimbra CVE-2025-66376 — stored XSS via CSS @import in email HTML; exploited by a Russian APT against Ukraine; CISA KEV (BleepingComputer, Security Affairs).
  • Zimbra CVE-2025-48700 — unauthenticated XSS, 10k+ exposed vulnerable servers, KEV (BleepingComputer).
  • Exchange OWA CVE-2026-42897 — crafted email executes JS in OWA; exploited before a permanent fix (Help Net Security).
  • Canvas LMS (Instructure) — ShinyHunters chained XSS bugs to admin sessions and defaced login portals (BleepingComputer).
  • OpenPLC ScadaBR CVE-2021-26829 — XSS in system_settings.shtm, exploited to deface HMI pages; KEV (THN).
  • WordPress CVE-2026-64638 — pre-auth reflected XSS on the login page → plugin upload RCE (Rescana).
  • Arista NGFW CVE-2025-6979 — XSS → admin creds → root command injection; patch incomplete (Bishop Fox).
  • FortiSandbox CVE-2025-52436 — reflected XSS leading to command execution (CVSS 7.9) (eSecurity Planet).
  • Siemens Teamcenter CVE-2026-58113 — reflected XSS in the login redirect, weaponized for credential harvesting (Bishop Fox).
  • PAN-OS GlobalProtect CVE-2025-0133 — reflected XSS on the gateway/portal (Palo Alto).
  • Citrix NetScaler CVE-2025-12101 — reflected XSS in SAML RelayState (watchTowr).
  • DbGate CVE-2026-34725 — stored XSS → RCE in Electron (advisory).
  • Storybook dev server — persistent XSS/RCE over WebSockets (Aikido).
  • Opera My Flow — stored XSS → RCE in the browser (Renwa); MeshCentral XSS → RCE (techanarchy).
  • VS Code Live Preview (11M installs) — website-driven local file exfiltration (OX Security).
  • uBlock Origin — one-click universal XSS via trusted filters (iter.ca).
  • Claude Chrome extension (ShadowPrompt) — subdomain DOM XSS + loose origin allowlist → zero-click prompt injection (THN).
  • Magento 2.3.1 — unauthenticated stored XSS → PHAR RCE (SonarSource); PivotX CVE-2025-52367 (writeup).
  • dompdf — reflected XSS + CSS font cache → RCE (Positive Security).
  • PayPal — stored XSS via cache poisoning, $18.9k (oxo.is); GitLab markdown DesignReferenceFilter, $16k (oxo.is).
  • Cloudflare /cdn-cgi/image/ — svg-hush serialization bug + Chromium gadget (SL Cyber).
  • Netlify image CDN — CSP bypass via URL-parser confusion → GitHub OAuth token theft (writeup).
  • GitHub Enterprise Server — stored XSS used to add an SSH key to another user (advisory).
  • Pretalx CVE-2026-41241 / The Events Calendar — stored XSS for privilege escalation (Rescana, writeup).
  • Facebook mobile — $7,500 DOM XSS (Johns Simon); PayPal DOM polyglot via DOM Invader (PortSwigger).
  • StealC malware panel — blind XSS used by researchers against the C2 operators (Rescana).
  • Uber partners portal — self-XSS turned exploitable via login/logout CSRF (Whitton).
  • DOMPurify SAFE_FOR_TEMPLATES bypasses: reparse-merged {{…}} expressions executed by Vue 3 and AngularJS (GHSA-qm7q-q8h9-jg8q); a shadow-root variant in 3.4.8 (Orbis). See Mutation XSS.
  • DOMPurify <selectedcontent> opt-in mXSS: works on every version when the tag is allowed via ADD_TAGS; the maintainer won’t fix it (trace37).
  • Admidio CVE-2026-134262: stored XSS in role names steals the admin’s CSRF token for privilege escalation (advisory).
  • SnapOtter GHSA-9c7h-xjrp-8gh3: an SVG sanitizer skipped whenever the image decoder failed (report; SVG and File Upload XSS).
  • Chess.com (2026): unauthenticated postMessage handler + DOMPurify placeholder-restore bypass → innerHTML in the logged-in origin → password set on OAuth-created accounts (ATO); closed as duplicate (XENOPS).
  • postMessage → eval without origin check: $600 on YesWeHack, rebuilt as a lab with an admin bot and a non-HttpOnly session cookie (bblabs).
  • postMessage hostname.includes() origin bypass → window.location.href: $250 on HackerOne (foorw1nner).
  • NoScript (SRLabs audit for OTF): XSS-filter denylist gap, SVG CSP-injection gap on Chromium, dead TabGuard; fixed in 13.6.18.901 / Tor Browser 15.0.13 (SRLabs).
  • rConfig CVE-2026-135693 (critical): the Config Search “View Matches” dialog rendered configuration context through Vue v-html. Markup placed in device banners, interface descriptions, ACL remarks or SNMP locations ran in the viewer’s session and could read stored configs containing secrets. Fixed in Core 8.2.17 / Pro 8.4.0 (GHSA-567q-942h-jc5g; Stored XSS).
  • Community Store for Concrete CMS CVE-2026-135689: an unauthenticated guest order with a quoted email local part containing markup executed in the store manager’s dashboard (orders.php, resend-invoice email field). Fixed in 2.8.0 (GHSA-h5vx-m44v-9592; Stored XSS).
  • Azure Portal CVE-2026-70305 (critical, spoofing) and Authentication Methods Portal Extension CVE-2026-109490 (critical, elevation of privilege): XSS advisories from Microsoft with no technical detail (GHSA-pr34-9jwf-7xpr, GHSA-5q9c-6x2x-jc62).
  • CVE timeline primer: Relevanssi CVE-2018-9034 (reflected tab parameter in WP admin), jQuery CVE-2019-11358 ($.extend prototype pollution → XSS gadgets) and CVE-2020-11022/11023 (htmlPrefilter), DOMPurify CVE-2019-16728 (mXSS), Zimbra CVE-2022-24682 (calendar stored XSS, exploited as a zero-day in “Operation EmailThief”), CVE-2023-45206 and CVE-2024-45510 (contacts), and TP-Link WR841N CVE-2025-25427 (router UPnP page) (isv0x1).
  • Self-XSS → CSRF-delivered XSS: a single-use CAPTCHA was beaten by building the PoC from a dropped request (writeup; Vulnerability Chaining).
  • N-able N-central (2026): stored XSS in patch metadata executed commands as root when an admin viewed it, one link in a 30+ zero-day disclosure. (source)

Prevention

Primary control is context-correct output handling at the sink; everything else is a net (OWASP; CISA/FBI Secure by Design).

  1. Encode for the exact context — HTML entity (body), attribute encoding (always quote attributes), JS \xHH (inside quoted JS strings only), CSS (inside property values only), URL %HH (in URL components). Don’t hand-roll; use the framework’s auto-escaping.
  2. Know the escape hatches. Treat dangerouslySetInnerHTML, v-html, bypassSecurityTrust*, .html(), |safe/raw as security review triggers. Helpers can be wrong too (Rails strip_tags, Jinja2 xmlattr, vue-i18n) — patch them.
  3. Use safe DOM APIs — textContent, setAttribute (non-URL attrs), element.style.x =; avoid eval, Function, string timers. Validate URL schemes (https:/http: allowlist) before assigning to href/location/src; this is the Django URLField and markdown javascript: lesson. For postMessage listeners: exact event.origin match against full origins, schema/type validation, an explicit field allowlist instead of Object.assign into state, and no message data to eval/innerHTML/location (DOM-Based XSS).
  4. Sanitize HTML you must accept with a maintained allowlist sanitizer (DOMPurify), keep it updated, keep default parser mode, avoid sanitize → serialize → re-parse round trips (Mutation XSS), and make the sanitizer the last write before the sink (XSS Filter Bypasses).
  5. Trusted Types (require-trusted-types-for 'script') — structural fix that makes DOM sinks reject raw strings (DOM-Based XSS); eslint-plugin-no-unsanitized at build time (Mozilla).
  6. Strict CSP — nonce-based + strict-dynamic, no unsafe-inline/unsafe-eval, object-src 'none', base-uri 'none', explicit form-action; audit allowlists for JSONP/upload hosts (Content Security Policy).
  7. Isolate uploads — separate cookieless origin, or Content-Disposition: attachment + X-Content-Type-Options: nosniff; validate by content, rasterize or sanitize SVG (SVG and File Upload XSS).
  8. Limit blast radius — HttpOnly/Secure/SameSite session cookies; no bearer tokens in localStorage; re-auth for email/password/MFA changes; apply the same encoding to internal dashboards and log viewers (Blind XSS).
  9. Desktop renderers — Electron contextIsolation on, nodeIntegration off, narrow preload/IPC surface (Electron pentesting).
  10. WAFs are compensating controls, not the fix (XSS Filter Bypasses).

Tools

ToolUse
Burp Suite (Repeater, Intruder)Reflection/stored mapping; tag/attribute allowlist brute-forcing
DOM InvaderSource→sink taint tracing, postMessage, clobbering, prototype-pollution gadgets ([[raw/portswigger.net/introducing-dom-invader-dom-xss-just-got-a-whole-lot-easier-to-find-7419
XSS Hunter Express / ezXSSSelf-hosted blind XSS callbacks with DOM/cookie/screenshot capture
XSStrikeContext-aware payload generation, fuzzing, WAF detection, reflected + DOM scanning ([[raw/github.com/ultimatehackers-xsstrike-xss-scanner-equipped-with-powerful-fuzzing-en-372
kxssReports unfiltered ' " < > per parameter for recon pipelines ([[raw/github.com/github-emoe-kxss-this-a-adaption-of-tomnomnom-s-kxss-tool-with-a-diffe-5020
Nuclei (headless, waitdialog)Detects actual execution via JS dialogs instead of reflection matchers ([[raw/blog.projectdiscovery.io/simplifying-xss-detection-with-nuclei-a-new-approach-5019
XSSTRONElectron browser that flags XSS (incl. POST) while you browse ([[raw/github.com/renwax23-xsstron-electron-js-browser-to-find-xss-vulnerabilities-autom-313
Google CSP Evaluator, CSPBypassPolicy auditing; known allowlisted-host gadget lookup
PayloadsAllTheThings (XSS Injection)Context-sorted payload reference: polyglots, filter/WAF bypasses, CSP bypasses ([[raw/github.com/payloadsallthethings-xss-injection-cheat-sheet-4173
eslint-plugin-no-unsanitizedFlags dangerous sink assignments in CI

Sub-pages

  • Reflected XSS — request-echoed payloads, context breakouts, edge/SSO product CVEs.
  • Stored XSS — persisted payloads, non-obvious stored sinks, privilege escalation and XSS→RCE cases.
  • Blind XSS — payloads firing in unseen internal tools, callback infrastructure, injection surfaces.
  • DOM-Based XSS — client-side sources and sinks, DOM Invader, DOM clobbering, double parsing, postMessage handlers.
  • Mutation XSS — sanitizer bypasses via HTML re-parsing mutations; DOMPurify bypass history.
  • XSS Filter Bypasses — WAF/blocklist evasion: encoding, HPP, parentheses-free calls, polyglots.
  • SVG and File Upload XSS — uploaded SVG/HTML executing same-origin; SVG sanitizer bypasses.
  • Content Security Policy — CSP directives, common misconfigurations and bypasses, deployment guidance.

Related topics: Account Takeover · Session Management · SameSite Cookies · OAuth 2.0 Vulnerabilities · Unrestricted File Upload · Server-Side Template Injection · JavaScript Template Engine SSTI · SSRF in PDF and HTML Renderers · Remote Code Execution · Privilege Escalation · Vulnerability Chaining · URL Parser Differentials · Server-Side Parameter Pollution · Out-of-Band Detection · Prompt Injection · Python Web Framework Security · Writing Bug Bounty Reports

See also: Cross-Site Request Forgery · Prototype Pollution · CORS Misconfiguration

Sources