Test input for common cross-site scripting payloads and context-sensitive sinks.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Input is checked for executable tags, event attributes, javascript URLs, and encoded equivalents; findings identify contexts where naive insertion could execute. The tester is heuristic and does not model every browser or sanitizer.
<img src=x onerror=alert('XSS')>
Detected 3 potential XSS threat(s)!
Threats found:
Pattern: Event handler (high)
Match: "onerror="
Risk: Event handler attribute (onclick, onerror, etc.)
Pattern: img onerror (high)
Match: "<img src=x onerror"
Risk: Image error event handler
Pattern: alert/prompt/confirm (low)
Match: "alert("
Risk: Dialog function call
Sanitized output:
<img src=x alert('XSS')>
Form tests, template reviews, and sanitizer regression suites test XSS cases.