Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Detects Cross-Site Scripting vulnerabilities in a codebase via recon, parallel taint tracing, and merged results in sast/xss-results.md.
Use this skill ↓60% 72%+12 ptsof test cases passed
Passed 18 of 25 test cases with the skill, and 15 of 25 without it.
3 of 3 safety checks passed
Not used yet
You are performing a focused security assessment to find Cross-Site Scripting vulnerabilities in a codebase. This skill uses a three-phase approach with subagents: recon (find sink sites), batched verify (trace taint for parallel batches of up to 3 sinks each), and merge (consolidate batch results into one report).
Prerequisites: sast/architecture.md must exist. Run the analysis skill first if it doesn't.
XSS occurs when user-supplied input is incorporated into a web page's HTML, JavaScript, or DOM without proper escaping or sanitization. This allows attackers to inject and execute arbitrary scripts in victims' browsers, leading to session hijacking, credential theft, defacement, and malware distribution.
The core pattern: unescaped, unsanitized user input reaches an HTML/JS output sink.
location.search, location.hash, document.cookie) and writes to a dangerous DOM sink (innerHTML, eval, document.write) without server involvement.Server-side HTML sinks — rendering user data into HTML responses without escaping:
{{ var | safe }}, {% autoescape off %}...{{ var }}...{% endautoescape %}mark_safe(var), format_html(...) with %s and unescaped input, {{ var | safe }} in templatesMarkup(var), render_template_string(f"...{var}...")echo $var, print $var, <?= $var ?> without htmlspecialchars()raw(var), var.html_safe, <%= raw var %>, content_tag with .html_safe<%= var %>, ${var} without <c:out> or fn:escapeXml()th:utext="${var}" (unescaped), [(${var})]template.HTML(var), template.JS(var), template.URL(var) to bypass auto-escaping@Html.Raw(var), MvcHtmlString.Create(var)<%- var %> (unescaped), vs <%= var %> (safe){{{ var }}} (triple-brace, unescaped)!{var} (unescaped)res.send("<html>..." + var + "..."), res.write("<p>" + var + "</p>")Client-side DOM sinks — JavaScript writing user-controlled data to the DOM unsafely:
element.innerHTML = varelement.outerHTML = varSkills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.