srl
Cross-Site Scripting (XSS)
Here is the revised and expanded Cross-Site Scripting (XSS) reference. The original payloads, encoding tables, and delivery techniques are preserved. The major additions address the 2025β2026 reality: DOM-based XSS has overtaken reflected XSS as the primary high-value target, Trusted Types adoption is slow and bypassable, sanitizer bypasses (DOMPurify prototype pollution, Shadow DOM) are now a first-class attack class, and AI agents are a new injection surface.
XSS remains the most consistently exploitable web vulnerability class because the attack surface keeps expanding: frameworks add new sinks, sanitizers add new bypasses, and browsers ship new APIs before their security model is fully understood. Reflected XSS is largely caught by scanners now; the current high-value targets are DOM-based XSS (unsafe innerHTML, document.write, framework-specific sinks), sanitizer bypasses (prototype pollution, Shadow DOM), and CSP misconfigurations.