Test filesSecurity and validation › html-xss-payloads.html

Sample HTML file

A catalogue of common XSS vectors - inline script, event handlers, javascript: URLs, SVG and iframe payloads. Every payload calls console.log only.

↓ Download html-xss-payloads.html
Filenamehtml-xss-payloads.html
FormatHTML
Size855 bytes (855 bytes)
MIME typetext/html; charset=utf-8
SHA-2566be860331959cf4a89a293a213f56912a5378c1db21a79cdd885a8e7daf87ef2
What this file catchesHTML sanitisers, rich-text editors and preview renderers. Feed this through your sanitiser and diff the output: anything executable that survives is a finding.

Download & verify

curl -fsSL -o "html-xss-payloads.html" "https://files.hexaqa.com/security/html-xss-payloads.html"
curl -fsSL "https://files.hexaqa.com/security/html-xss-payloads.html" | sha256sum # expect: 6be860331959cf4a89a293a213f56912a5378c1db21a79cdd885a8e7daf87ef2

More security and validation test files

eicar.com.txtgtube-spam.txtpath-traversal-payloads.txtpolyglot-gif-html.gifshell-script.shsql-injection-payloads.txtwindows-batch.bat

← All Security and validation files