New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

audit-react2shell

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

audit-react2shell

**audit-react2shell** is a high-performance CLI security auditor designed to secure the front-end ecosystem. It recursively scans your local machine or your entire GitHub organization to identify and auto-patch critical Next.js and React vulnerabilities (

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

audit-react2shell

audit-react2shell is a high-performance CLI security auditor designed to secure the front-end ecosystem. It recursively scans your local machine or your entire GitHub organization to identify and auto-patch critical Next.js and React vulnerabilities (including the December 2025 Flight protocol exploits).

Key Features

  • Fleet-Wide Scanning: Scan hundreds of projects across your entire hard drive in seconds.
  • Zero-Clone GitHub Audit: Audit remote repositories via the GitHub API without downloading a single byte of source code.
  • Interactive Patching: Selectively update vulnerable projects to safe, verified versions using your preferred package manager (npm or yarn).
  • Monorepo Support: Automatically detects individual package.json files within complex directory structures.

Installation

Since this is an open-source tool, you can run it directly via npx or install it globally:

# Run without installing
npx audit-react2shell

# Or install globally
npm install -g audit-react2shell

Usage

1. Local Audit (Default)

Scan your current directory (and all sub-directories) for vulnerable Next.js versions:

audit-react2shell scan

Target a specific directory:

audit-react2shell scan ~/path/to/projects

2. Auto-Patch Mode

Find vulnerabilities and enter an interactive menu to fix them immediately. This command updates your package.json and lock files to the safest available version.

audit-react2shell scan --fix

3. GitHub Cloud Audit

Audit your entire GitHub profile or a specific organization. Requires a GitHub Personal Access Token (PAT) with repo read permissions.

# Audit your personal repositories
audit-react2shell github

# Audit a specific organization
audit-react2shell github --org your-org-name

How it Works

The tool compares your package.json dependencies against a hardcoded map of known vulnerable ranges and their corresponding safe patches:

Current Version RangeRecommended Safe Version
13.3.0 to 14.2.x14.2.35
15.0.x15.0.7
15.1.x15.1.11
15.2.x15.2.8
15.3.x15.3.8
15.4.x15.4.10
15.5.x15.5.9
16.0.x16.0.10
Canary15.6.0-canary.60

Security & Privacy

  • Local Data: No project data or source code is uploaded to any server.
  • GitHub Tokens: Used only for the current session and never stored on disk.
  • Safe Patching: Uses exact version locking (--save-exact / --exact) to ensure verified safe versions.

Configuration (For Developers)

Project structure:

audit-react2shell/
├── bin/
│   └── index.js       # CLI Command Definitions
├── lib/
│   ├── scanner.js     # Recursive File System Logic
│   ├── auditor.js     # Version Validation & Logic
│   ├── github.js      # API Integration
│   └── patcher.js     # Dependency Update Engine
└── package.json

🤝 Contributing

  • Fork the repository.
  • Update NEXT_RULES in lib/auditor.js as new CVEs are released.
  • Submit a Pull Request.

Built for the community by developers who care about a secure web.

Keywords

react2shell

FAQs

Package last updated on 23 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts