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):
| Axis | Values |
|---|---|
| Persistence / delivery | Reflected XSS (request → immediate response) · Stored XSS (persisted, served to others) · Blind XSS (stored, fires in a UI you can’t see) |
| Where the injection executes | Server-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:
- 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).
- Session theft → Account Takeover — cookie exfil, or JWTs in
localStorage, which SPAs commonly use and which noHttpOnlyflag protects (Beyond alert(1)); SDK abuse to mint signed JWTs and live AWS STS creds (DOM XSS → ATO chain). - Privilege Escalation — stored payload rendered in an admin’s session: contributor → admin (The Events Calendar), forced talk acceptance (Pretalx CVE-2026-41241).
- 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.
- 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.
| Context | Typical 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 / location | javascript: scheme |
| Template expression | AngularJS {{…}} 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 SAMLRelayState(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.postMessagehandlers are a recurring cross-origin source: missing or substring (hostname.includes(...)) origin checks feedingeval,location.hreforinnerHTML(bblabs, foorw1nner). - Mutation XSS — beats a correct sanitizer:
sanitize → serialize → re-parseisn’t idempotent, so markup the sanitizer judged inert mutates into live markup oninnerHTMLre-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, GotoHTTPsn). - 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, Vuev-html, Angular[innerHTML]/bypassSecurityTrust*, jQuery.html(), Alpinex-directives. - Helper/library bugs: Rails
strip_tagsdoesn’t encode quotes, so output inside an attribute breaks out (GHSA-rq8q-p985-fjq7); Jinja2xmlattrwith spaced keys injects attributes (CVE-2024-22195); vue-i18n withescapeParameterHtml: true(CVE-2025-53892); Angular template-compiler schema gap via SVG animation/MathML (CVE-2025-66412); Django admin renderingURLFieldas a link without a scheme check →javascript:(CVE-2026-15920). - See also Python Web Framework Security.
How to test
- 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).
- 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,kxssreports unfiltered chars per parameter. - Craft the context-appropriate breakout (table above). Confirm execution, not reflection.
- 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. - 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).
- 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.
- 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-actiongaps (Content Security Policy). - 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,postMessagehandlers (origin check present? exact match or substring? whichevent.datafields 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 (
HttpOnlycookie 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
localStorageJWT; 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
.phpextension, 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.aisubdomain 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 ifform-actionis missing (Content Security Policy).
Bypassing defenses
- WAFs / blocklists → XSS Filter Bypasses. Characterize the exact rule, then step out: Akamai blocked JS keywords adjacent to
(, sotop["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 andwindow.namenever 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,__depthclobbering, XHTML-mode PI/CDATA differentials, dirty-namespacedata-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-Typeletsxss.htmlbe stored asimage/pngand served as HTML. - CSP → Content Security Policy.
unsafe-inline/wildcards/data:; JSONP or AngularJS gadgets on allowlisted hosts (unlessstrict-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, customyoutube.js). HttpOnlycookies stop cookie reads, not same-origin requests — act in-session instead, or target tokens inlocalStorage/the DOM.
Real-world cases
- Zimbra CVE-2025-66376 — stored XSS via CSS
@importin 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_TEMPLATESbypasses: 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 viaADD_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
postMessagehandler + DOMPurify placeholder-restore bypass →innerHTMLin the logged-in origin → password set on OAuth-created accounts (ATO); closed as duplicate (XENOPS). - postMessage →
evalwithout origin check: $600 on YesWeHack, rebuilt as a lab with an admin bot and a non-HttpOnlysession 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
tabparameter in WP admin), jQuery CVE-2019-11358 ($.extendprototype 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).
- 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. - Know the escape hatches. Treat
dangerouslySetInnerHTML,v-html,bypassSecurityTrust*,.html(),|safe/rawas security review triggers. Helpers can be wrong too (Railsstrip_tags, Jinja2xmlattr, vue-i18n) — patch them. - Use safe DOM APIs —
textContent,setAttribute(non-URL attrs),element.style.x =; avoideval,Function, string timers. Validate URL schemes (https:/http:allowlist) before assigning tohref/location/src; this is the DjangoURLFieldand markdownjavascript:lesson. ForpostMessagelisteners: exactevent.originmatch against full origins, schema/type validation, an explicit field allowlist instead ofObject.assigninto state, and no message data toeval/innerHTML/location(DOM-Based XSS). - 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).
- Trusted Types (
require-trusted-types-for 'script') — structural fix that makes DOM sinks reject raw strings (DOM-Based XSS);eslint-plugin-no-unsanitizedat build time (Mozilla). - Strict CSP — nonce-based +
strict-dynamic, nounsafe-inline/unsafe-eval,object-src 'none',base-uri 'none', explicitform-action; audit allowlists for JSONP/upload hosts (Content Security Policy). - 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). - Limit blast radius —
HttpOnly/Secure/SameSitesession cookies; no bearer tokens inlocalStorage; re-auth for email/password/MFA changes; apply the same encoding to internal dashboards and log viewers (Blind XSS). - Desktop renderers — Electron
contextIsolationon,nodeIntegrationoff, narrow preload/IPC surface (Electron pentesting). - WAFs are compensating controls, not the fix (XSS Filter Bypasses).
Tools
| Tool | Use |
|---|---|
| Burp Suite (Repeater, Intruder) | Reflection/stored mapping; tag/attribute allowlist brute-forcing |
| DOM Invader | Source→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 / ezXSS | Self-hosted blind XSS callbacks with DOM/cookie/screenshot capture |
| XSStrike | Context-aware payload generation, fuzzing, WAF detection, reflected + DOM scanning ([[raw/github.com/ultimatehackers-xsstrike-xss-scanner-equipped-with-powerful-fuzzing-en-372 |
| kxss | Reports 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 |
| XSSTRON | Electron 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, CSPBypass | Policy 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-unsanitized | Flags 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,
postMessagehandlers. - 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
- Excess XSS: A comprehensive tutorial · original
- Cross-site scripting — Wikipedia · original
- OWASP XSS Prevention Cheat Sheet · original
- OWASP — DOM Based XSS · original
- CISA and FBI Secure-by-Design guidelines on XSS · original
- The Real Impact of Cross-Site Scripting · original
- Beyond alert(1): Real XSS Dangers in React & Vue SPAs · original
- Why React Didn't Kill XSS · original
- Weaponizing Cross Site Scripting: When One Bug Isn't Enough · original
- XSS without HTML: Client-Side Template Injection · original
- Reflected XSS: Advanced Exploitation Guide · original
- Testing for reflected XSS manually with Burp Suite · original
- Weaponizing Reflected XSS in Siemens Teamcenter (CVE-2026-58113) · original
- CVE-2025-0133: PAN-OS Reflected XSS in GlobalProtect · original
- Citrix NetScaler RXSS CVE-2025-12101 · original
- Kubeflow Pipelines reflected XSS · original
- CVE-2026-13536: Reflected XSS in GotoHTTP · original
- Reflected Client XSS at Amazon.com · original
- Testing for stored XSS with Burp Suite · original
- Contributor to Administrator: Stored XSS in The Events Calendar · original
- Critical Stored XSS in Pretalx (CVE-2026-41241) · original
- Magento 2.3.1: Unauthenticated Stored XSS to RCE · original
- CVE-2025-52367: Stored XSS to RCE in PivotX CMS · original
- Stored XSS in My Flow to RCE in Opera Browser · original
- MeshCentral: From XSS to RCE · original
- DbGate Stored XSS to RCE in Electron (CVE-2026-34725) · original
- Persistent XSS/RCE using WebSockets in Storybook's dev server · original
- Stored XSS Through a Markdown Sanitization Gap · original
- Stored XSS on thousands of webshops · original
- Stored XSS to Steal Sessions · original
- GitHub Enterprise Server stored XSS · original
- PayPal stored XSS via cache poisoning ($18.9k) · original
- GitLab stored XSS in markdown via DesignReferenceFilter ($16k) · original
- CVE-2025-66412: Angular Stored XSS via SVG Animation and MathML · original
- The Guide to Blind XSS · original
- Hunting for Blind XSS Vulnerabilities · original
- Mastering Blind XSS · original
- How to set up XSSHunter · original
- xsshunter-express · original
- ezXSS · original
- XSS in StealC Malware Admin Panel · original
- What is DOM-based XSS? — PortSwigger · original
- DOM-based vulnerabilities — Web Security Academy · original
- Understanding DOM-Based XSS: Sources and Sinks · original
- Introducing DOM Invader · original
- Finding DOM Polyglot XSS in PayPal · original
- CVE-2025-1647: Bootstrap 3 XSS via DOM Clobbering · original
- Site-DOM XSS using Cookie Injection · original
- Reflected DOM XSS via double parsing · original
- $7500 DOM XSS in Facebook Mobile · original
- Finding and Fixing DOM-based XSS with Static Analysis · original
- Beyond XSS: Mutation XSS Explained · original
- Bypassing DOMPurify Again with Mutation XSS · original
- Exploring the DOMPurify Library: Bypasses and Fixes · original
- Bypassing DOMPurify with Good Old XML · original
- DOMPurify — dirty namespace bypass · original
- GreHack 2024 — bypassing DOMPurify on default config · original
- XSS in innerHTML without equals · original
- XSS Filter Evasion · original
- The Brute Art of Bypass · original
- Bypassing WAFs with Parameter Pollution · original
- Bypassing XSS filters by enumerating permitted tags/attributes · original
- Bypassing Signature-Based XSS Filters · original
- Invoking JavaScript without parentheses · original
- Unleashing an Ultimate XSS Polyglot · original
- DOM XSS + WAF bypass + window.name → ATO · original
- Reflected XSS, all tags blocked except custom · original
- CSP Bypasses: Advanced Exploitation Guide · original
- CSP Bypass Techniques and Security Tips · original
- CSP explained including common bypasses · original
- CSP Inline Scripts · original
- CSP Bypass Techniques Collection · original
- Blind trust: stealing credentials through CSP · original
- Bypassing CSP via URL Parser Confusions (Netlify) · original
- CSPBypass tool · original
- Rendering User-Supplied SVG Without Getting Burned · original
- Stored XSS via SVG file upload lab · original
- Penpot 2.18 stored XSS (CVE-2026-133704) · original
- Atomic Server stored XSS via inline uploads · original
- Cache Me If You Can: XSS in Cloudflare's /cdn-cgi/image/ · original
- Scalable Vector Grief · original
- Stored XSS via SVG Image Leading to ATO · original
- From XSS to RCE (dompdf 0day) · original
- CISA orders feds to patch Zimbra XSS flaw · original
- Over 10000 Zimbra servers vulnerable to ongoing XSS attacks · original
- Russian APT targets Ukraine via Zimbra XSS CVE-2025-66376 · original
- Unpatched Exchange Server vulnerability exploited (CVE-2026-42897) · original
- Instructure confirms hackers used Canvas flaw to deface portals · original
- CISA adds OpenPLC ScadaBR XSS CVE-2021-26829 to KEV · original
- CVE-2026-64638: Pre-Auth XSS in WordPress · original
- Arista Firewall XSS to RCE Chain · original
- FortiSandbox XSS Allows Remote Command Execution · original
- XSS is the new RCE: Tauri (OWASP AppSec USA 2026) · original
- XSS in Live Preview VS Code Extension · original
- Penetration Testing of Electron-based Applications · original
- Universal XSS in uBlock Origin · original
- Claude Extension Zero-Click XSS Prompt Injection · original
- OAuth+XSS Attack Threatens Millions of Web Users · original
- Uber: Turning Self-XSS into Good-XSS · original
- Make Self-XSS Great Again · original
- From Stored XSS to Forced Login via Cookie Tossing · original
- Rails Action View: possible XSS in strip_tags · original
- Jinja2 XSS CVE-2024-22195 · original
- XSS in vue-i18n (CVE-2025-53892) · original
- Stored XSS in Django's admin via URLField (CVE-2026-15920) · original
- XSStrike · original
- kxss · original
- Simplifying XSS Detection with Nuclei · original
- XSSTRON · original
- DOMPurify SAFE_FOR_TEMPLATES bypass when sanitized output is reparsed · original
- DOMPurify 3.4.8 SAFE_FOR_TEMPLATES bypass via shadow root content · original
- selectedcontent mXSS on every DOMPurify version · original
- Admidio critical stored XSS · original
- SnapOtter: stored XXE/SSRF/XSS via SVG upload sanitization bypass · original
- Escalating self-XSS by chaining CSRF and analyzing CAPTCHA · original
- PayloadsAllTheThings: XSS Injection Cheat Sheet · original
- Cross Site Scripting - Payloads All The Things · original
- DOM XSS via postMessage to eval: lab based on a real report · original
- How a simple postMessage validation flaw led to DOM XSS · original
- SRLabs: three ways around NoScript's JavaScript protections · original
- The Last Writer Wins: Chess.com account takeover via postMessage XSS · original
- rConfig stored cross-site scripting (critical) · original
- Community Store for Concrete CMS stored XSS · original
- Azure cross-site scripting allows elevation (critical) · original
- Cross-site scripting advisory (critical) · original
- XSS Explained: From a Simple alert(1) to Real-World Impact CVEs · original
- N-able takes cloud platform offline after 30+ zero-days published (unauth XXE chain) · original