Cross-Site Scripting (XSS) Cheat Sheet
Cross-Site Scripting (XSS) Cheat Sheet details numerous methods to circumvent Web Application Firewalls (WAFs) and filters. Each vector is accompanied by a proof of concept. The cheat sheet can be procured in PDF format. It is a project by PortSwigger Research, and updates are provided on Twitter. The cheat sheet was last updated on September 21, 2026.
This cheat sheet triggers when the resource finishes loading. It works on all tags when the content-visibility attribute is set to "auto". The cheat sheet activates in a hidden input when content-visibility is also set to "auto". It fires when a resource fails to load or encounters an error. It also triggers when an element receives focus and the autofocus attribute is employed for automatic focus.
The cheat sheet fires when a message event is received from a postMessage call. It activates when a video or audio begins downloading. It goes off when scrolling reaches the end of an element. It triggers when the scroll position snaps to a new point. A CSP (Content Security Policy) violation triggers this cheat sheet.
This cheat sheet fires when a slot's assigned content changes. It activates when a video or audio encounters encrypted content and needs a decryption key from the page. The availability of an AirPlay playback target changing triggers this cheat sheet. Right-clicking or using the middle mouse button also sets off this cheat sheet. When the value of an element is about to be modified, the cheat sheet fires.
Right-clicking to display the context menu triggers this cheat sheet. Dragging finishes on the element, and this cheat sheet responds. A video changing its full-screen status initiates this cheat sheet. The initiation of a new gesture when multiple fingers touch the screen is another trigger. Interaction with an input range via click is required for this cheat sheet.
The cheat sheet fires when the browser requests the user's location after permission is granted. Interaction with an input range via click is necessary. When the mouse is hovered over the element, this cheat sheet fires. When the mouse moves away from the element, it triggers. Moving the mouse away from the element also initiates the cheat sheet.
A video changing its full-screen status triggers this cheat sheet. Selecting and dragging text using a laptop touchpad sets this cheat sheet off. User actions in a prompt, such as confirm, also activate this cheat sheet.
Rewritten by urgent.news; may contain errors — check the original.
Source: portswigger.net