XSS Scanner

Detect cross-site scripting vulnerabilities in your frontend code before they ship.

modbender Updated 21 repo stars

File contents

XSS Scanner

Detect cross-site scripting vulnerabilities in your frontend code before they ship.

Quick Start

npx ai-xss-check

What It Does

  • Scans JavaScript/TypeScript for XSS vulnerabilities
  • Detects unsafe innerHTML, eval, and DOM manipulation
  • Identifies unescaped user input in templates
  • Checks React dangerouslySetInnerHTML usage
  • Provides fix suggestions for each finding

Usage

# Scan current directory
npx ai-xss-check

# Scan specific files
npx ai-xss-check ./src/components

When to Use

  • Before security audits
  • Reviewing third-party code
  • Setting up CI security gates
  • Training junior devs on XSS prevention

Part of the LXGIC Dev Toolkit

One of 110+ free developer tools from LXGIC Studios. No paywalls, no sign-ups.

Find more:

License

MIT. Free forever.

modbender/skill-library-mcp commit 48cdbc65ee

Frequently asked questions

npx get-skill add modbender/xss-scanner