๐Ÿ” I Built a JavaScript Web Vulnerability Scanner Devs Can Actually Use (CLI, Web UI, and AI-Powered Fixes)

๐Ÿ›ก๏ธ I Built a JavaScript Web Vulnerability Scanner. Hereโ€™s How (And Why You Should Try It)
๐Ÿ” Scan your websites for XSS, CSRF, SSL issues, and more straight from the CLI or your browser
Like many developers, Iโ€™ve always been fascinated by how web apps …


This content originally appeared on DEV Community and was authored by Pratik242

๐Ÿ›ก๏ธ I Built a JavaScript Web Vulnerability Scanner. Hereโ€™s How (And Why You Should Try It)
๐Ÿ” Scan your websites for XSS, CSRF, SSL issues, and more straight from the CLI or your browser
Like many developers, Iโ€™ve always been fascinated by how web apps can be broken ethically, of course. I wanted to build a tool that could:

โœ… Find real-world bugs like XSS, CSRF, missing headers
โœ… Work from the command line or the browser
โœ… Be open-source and free
โœ… Help developers secure their own sites

So I built web-vuln-scanner a JavaScript-powered vulnerability scanner you can run anywhere. No setup. No cost. Just โš”๏ธ scan and see.

โš™๏ธ What It Does
Hereโ€™s what the scanner can detect:

Vulnerability Type What It Checks For
๐Ÿงฌ XSS Reflected/script injection in forms/URLs
๐Ÿ•ธ๏ธ CSRF Missing tokens and protection headers
๐Ÿ”’ SSL/TLS Misconfigurations, weak ciphers
๐Ÿ“ฌ HTTP Headers Missing security headers like CSP, HSTS
๐Ÿ“ Directory Traversal Unsafe file paths
๐Ÿ›‘ Open Ports Common exposed ports (on websites)
๐Ÿ“ฆ Dependency Issues Outdated or vulnerable libraries
Bonus:

๐Ÿง  Gemini AI-powered suggestions (Need Help Fixing? button in UI)

๐Ÿงช CLI with flags like --quick, --risk-insight, and --show-evidence

๐Ÿš€ Quick Start (CLI)

npm install -g web-vuln-scanner

web-vuln-scanner https://example.com
๐Ÿ‘‰ Options:

--quick // Fast scan (headers + SSL)
--deep // Puppeteer-based crawl
--risk-insight // Risk level analysis
--show-evidence // Show raw technical details
You get a report in Markdown, HTML, or JSON.

๐Ÿง‘โ€๐Ÿ’ป Web UI Demo (with AI Suggestions)
Visit the web UI: ๐Ÿ”— scannervuln.vercel.app

Paste your URL โ†’ Get instant results โ†’ Click Need Suggestions? to get Gemini AI-powered security fixes ๐Ÿ’ก

๐Ÿ“ฆ VS Code Extension
You can even scan your sites inside VS Code with the new extension:

โžก๏ธ Web Vuln Scanner โ€“ VS Code

๐Ÿง  Why I Built This
I noticed two things:

Most security tools are either too complex or too expensive

Dev-friendly vulnerability scanners are rare

So I created something that feels like a dev tool, not a pentesterโ€™s console.

Inspired by:

๐Ÿ› ๏ธ Nuclei

โš”๏ธ ZAP

โšก Lighthouse

But simplified for devs like us.

๐Ÿ”ง How It Works
Under the hood:

Node.js + Puppeteer for crawling JavaScript-rendered pages

Scanners as modules (lib/scanners/*.js)

Real-time console output + rich reporting

Cookie/header injection support

AI-fixes via Gemini 2.0

๐Ÿค Open Source & Dev Friendly
๐Ÿ”— GitHub: github.com/pratikacharya1234/web-vuln-scanner
๐Ÿ“ฆ NPM: npmjs.com/package/web-vuln-scanner

Feel free to:

โญ Star the repo

๐Ÿด Fork it and build your own

๐Ÿ› Submit issues

๐Ÿ™Œ Contribute!

๐Ÿ’ก Whatโ€™s Next?
Coming soon:

๐Ÿงช CI/CD integration via GitHub Action

๐Ÿ” OAuth and JWT Auth Scanning

๐Ÿ“Š OWASP, PCI DSS, and GDPR compliance reports

๐Ÿง‘โ€๐Ÿ’ผ Enterprise UI with Jira/Slack integrations

๐Ÿง  Final Thoughts
Security shouldnโ€™t be scary, boring, or expensive.
Letโ€™s bring hacker vibes to developers responsibly.

Try it, break your own site (gently), and ship safer software ๐Ÿ”

If you like it, drop a โญ on GitHub or let me know what you want added next!
repo : https://github.com/pratikacharya1234/Web-Vulnerability-Scanner
npm : https://www.npmjs.com/package/web-vuln-scanner


This content originally appeared on DEV Community and was authored by Pratik242


Print Share Comment Cite Upload Translate Updates
APA

Pratik242 | Sciencx (2025-04-21T23:07:22+00:00) ๐Ÿ” I Built a JavaScript Web Vulnerability Scanner Devs Can Actually Use (CLI, Web UI, and AI-Powered Fixes). Retrieved from https://www.scien.cx/2025/04/21/%f0%9f%94%90-i-built-a-javascript-web-vulnerability-scanner-devs-can-actually-use-cli-web-ui-and-ai-powered-fixes/

MLA
" » ๐Ÿ” I Built a JavaScript Web Vulnerability Scanner Devs Can Actually Use (CLI, Web UI, and AI-Powered Fixes)." Pratik242 | Sciencx - Monday April 21, 2025, https://www.scien.cx/2025/04/21/%f0%9f%94%90-i-built-a-javascript-web-vulnerability-scanner-devs-can-actually-use-cli-web-ui-and-ai-powered-fixes/
HARVARD
Pratik242 | Sciencx Monday April 21, 2025 » ๐Ÿ” I Built a JavaScript Web Vulnerability Scanner Devs Can Actually Use (CLI, Web UI, and AI-Powered Fixes)., viewed ,<https://www.scien.cx/2025/04/21/%f0%9f%94%90-i-built-a-javascript-web-vulnerability-scanner-devs-can-actually-use-cli-web-ui-and-ai-powered-fixes/>
VANCOUVER
Pratik242 | Sciencx - » ๐Ÿ” I Built a JavaScript Web Vulnerability Scanner Devs Can Actually Use (CLI, Web UI, and AI-Powered Fixes). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/04/21/%f0%9f%94%90-i-built-a-javascript-web-vulnerability-scanner-devs-can-actually-use-cli-web-ui-and-ai-powered-fixes/
CHICAGO
" » ๐Ÿ” I Built a JavaScript Web Vulnerability Scanner Devs Can Actually Use (CLI, Web UI, and AI-Powered Fixes)." Pratik242 | Sciencx - Accessed . https://www.scien.cx/2025/04/21/%f0%9f%94%90-i-built-a-javascript-web-vulnerability-scanner-devs-can-actually-use-cli-web-ui-and-ai-powered-fixes/
IEEE
" » ๐Ÿ” I Built a JavaScript Web Vulnerability Scanner Devs Can Actually Use (CLI, Web UI, and AI-Powered Fixes)." Pratik242 | Sciencx [Online]. Available: https://www.scien.cx/2025/04/21/%f0%9f%94%90-i-built-a-javascript-web-vulnerability-scanner-devs-can-actually-use-cli-web-ui-and-ai-powered-fixes/. [Accessed: ]
rf:citation
» ๐Ÿ” I Built a JavaScript Web Vulnerability Scanner Devs Can Actually Use (CLI, Web UI, and AI-Powered Fixes) | Pratik242 | Sciencx | https://www.scien.cx/2025/04/21/%f0%9f%94%90-i-built-a-javascript-web-vulnerability-scanner-devs-can-actually-use-cli-web-ui-and-ai-powered-fixes/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.