eslint-security-scan

Scan JavaScript and TypeScript code for security vulnerabilities with ESLint plugins.

2|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/kfolkes/dotnet-modernization-db-transform --skill eslint-security-scan-kfolkes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: eslint-security-scan
Source: https://github.com/kfolkes/dotnet-modernization-db-transform/tree/main/sec-check/.github/skills/eslint-security-scan
Command: npx skills add https://github.com/kfolkes/dotnet-modernization-db-transform --skill eslint-security-scan-kfolkes

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automatically scans JavaScript and TypeScript codebases for security vulnerabilities, helping to prevent code injection, XSS, command injection, and other critical security flaws before they reach production.

Core Features & Use Cases

  • Vulnerability Detection: Identifies a wide range of security risks including code injection (eval, Function), XSS (innerHTML, dangerouslySetInnerHTML), command injection (child_process), ReDoS, path traversal, and more.
  • Language Support: Works with JavaScript, TypeScript, React, Vue, and Angular projects.
  • Use Case: Integrate this Skill into your CI/CD pipeline to automatically flag security vulnerabilities in your web application's codebase, ensuring a more secure development lifecycle.

Quick Start

Use the eslint-security-scan skill to scan the current directory for JavaScript and TypeScript security vulnerabilities.

Frequently Asked Questions about eslint-security-scan

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan JavaScript and TypeScript code for security vulnerabilities?

You can scan JavaScript and TypeScript code for security vulnerabilities by using ESLint with specialized plugins to detect code injection, XSS, command injection, ReDoS, path traversal, and insecure crypto usage automatically.

What types of security flaws can ESLint detect in Node.js and web applications?

ESLint can detect security flaws in Node.js and web applications including code injection via eval, XSS via innerHTML, command injection via child_process, regular expression denial of service, path traversal, and insecure crypto usage.

Can I use ESLint security scanning with React, Vue, or Angular projects?

Yes, ESLint security scanning works directly with React, Vue, and Angular projects. It analyzes JavaScript and TypeScript codebases across these frontend frameworks to identify security risks before production deployment.

Do I need eslint-plugin-security and eslint-plugin-no-unsanitized to scan for XSS and code injection?

Yes, you need eslint-plugin-security and eslint-plugin-no-unsanitized installed alongside ESLint to effectively scan for XSS, code injection, and other critical security vulnerabilities in your JavaScript and TypeScript codebase.

How do I integrate vulnerability scanning into a CI/CD pipeline for npm packages?

You integrate vulnerability scanning into a CI/CD pipeline for npm packages by running ESLint with security plugins against your JavaScript and TypeScript directories to automatically flag security vulnerabilities during the build process.

What is the best way to prevent code injection and XSS in TypeScript projects?

The best way to prevent code injection and XSS in TypeScript projects is to perform automated static analysis using ESLint with security-focused plugins to identify unsafe patterns like eval, dangerouslySetInnerHTML, and child_process execution.