Skip to content

XSS Payloads by Type

Browse categorized XSS payloads, each rendered as copy-paste text with the injection context, the preconditions it needs, why it fires and how to defend against it. Every payload opens in the builder for encoding and mutation. Use only against systems you are authorized to test.

Reflected & Stored XSS Payloads

Copy-paste reflected and stored XSS payloads: script tags, image onerror, SVG onload and more, each with the injection context, preconditions and why it fires.

11 payloads

DOM-Based XSS Payloads

DOM-based XSS payloads that execute entirely client-side via sinks like innerHTML, document.write, eval and location.hash — with the source, sink and why each works.

5 payloads

DOM Clobbering Payloads

DOM clobbering payloads that overwrite JavaScript variables and properties with named HTML elements — useful when markup injection is allowed but script execution is blocked.

8 payloads

Event Handler XSS Payloads

XSS payloads for HTML attribute contexts: break out of a quoted attribute and inject auto-firing event handlers like onfocus, onerror and onanimationstart.

8 payloads

XSS WAF Bypass Payloads

XSS payloads tuned to bypass web application firewalls — Cloudflare, AWS WAF, Akamai, ModSecurity — using tag splitting, encoding, string concatenation and obscure vectors.

30 payloads

Mutation XSS (mXSS) Payloads

Mutation XSS (mXSS) payloads that survive sanitization: the browser re-parses sanitized HTML and reconstitutes an executable node through parser quirks.

10 payloads

CSS Injection Payloads

CSS injection payloads: javascript: URLs, @import, expression() and style-attribute breakouts. Mostly legacy-engine script execution plus data-exfiltration context.

12 payloads

XSS Polyglot & SVG Payloads

XSS polyglot payloads that execute across multiple injection contexts, plus SVG-based vectors (onload, foreignObject, SMIL) for filters that allow SVG.

7 payloads

CSP Bypass & Framework XSS Payloads

CSP bypass XSS payloads (JSONP, base-tag, Angular) and framework-specific vectors for Angular, React (dangerouslySetInnerHTML) and Vue (v-html).

7 payloads