
fix-react2shell-next
https://github.com/vercel-labs/fix-react2shell-next- Category
- Cybersecurity
- Rank
- No. 1441Tools index
Previous survey · No. 1447 ·
- Pricing
- Open Source
- Type
- TOOL
- Builder
- vercel-labs
- GitHub
- 402 stars
- Latest release
- v1.1.4
- Date
About
One-command CLI to patch CVE-2025-66478 (React 2 Shell RCE) in Next.js and React Server Components apps.
What it does
It recursively inspects dependency manifests, checks four security advisories, and chooses the highest required patched version when issues overlap. It can report findings, update dependencies to exact versions, then refresh the lockfile or install packages with the detected package manager.
Why it's ranked here
This is a focused remediation tool with unusually practical monorepo and automation support. Its strongest design choice is combining overlapping advisories into one minimum safe upgrade. The narrow version parser and inconsistent library packaging keep it from serving as a general dependency security system.
What's good
Dry-run and JSON modes support audits and scripting without modifying projects. Interactive confirmation protects local use, while automatic fixing suits CI. It understands npm, Yarn, pnpm, and Bun, checks installed versions for ranges or unusual specifications, and tests the logic that selects patches across multiple advisories.
Tradeoffs
The scanner only knows vulnerabilities encoded in its registry, so it cannot replace broad dependency auditing. Version parsing handles stable, release candidate, and canary forms, but not arbitrary semantic-version syntax. If an unusual specification cannot be resolved from the installed dependency, the tool reports an unknown case and recommends a fixed fallback.
How to use it well
Use it when maintaining Next.js or React Server Components projects, especially monorepos needing a repeatable emergency patch workflow. Start with dry-run or JSON output, inspect the proposed exact pins, apply fixes, then test and commit. Keep a general vulnerability scanner alongside it for unrelated packages and advisories.
Technical notes+
bin/cli.js invokes run() from lib/index.js. That module recursively discovers manifests through lib/utils/filesystem.js, analyzes dependencies against the registry in lib/vulnerabilities/index.js, computes the highest patched version across applicable CVEs, writes exact versions, and calls package-manager installs through lib/utils/package-manager.js. lib/utils/version.js parses stable, RC, and canary versions and detects ranges or unusual specifications. package.json declares Node >=16, exposes the CLI through bin/cli.js, and limits published files to bin and lib. However, its main field points to index.js, while the supplied tree only shows lib/index.js, making the declared library entry questionable. test/minimal-fixes.test.js exercises combined patch selection, and test/cve-2025-55183.test.js covers affected, patched, canary, and React RSC cases.
Observed
- License
- MIT
- Primary language
- JavaScript using CommonJS modules
- Install surface
- Published npm package runnable through npx
- Interface
- Command-line interface with interactive, automatic fix, dry-run, JSON, and lockfile-only modes
- Runtime
- Node.js 16 or newer
- Package managers
- Supports npm, Yarn, pnpm, and Bun
- Repository structure
- Includes dedicated vulnerability modules, utility modules, and Node test files
Read from README.md, package.json, lib/index.js, lib/utils/colors.js, lib/utils/version.js, lib/utils/filesystem.js, lib/vulnerabilities/index.js, lib/utils/package-manager.js, lib/vulnerabilities/cve-2025-55183.js, lib/vulnerabilities/cve-2025-55184.js, lib/vulnerabilities/cve-2025-66478.js, lib/vulnerabilities/cve-2025-67779.js, bin/cli.js, test/minimal-fixes.test.js, test/cve-2025-55183.test.js.
What it can do
Patch CVE-2025-66478 vulnerability in Next.js applications
Next.js application codebase → Patched Next.js application with vulnerability fixed
Patch CVE-2025-66478 vulnerability in React Server Components applications
React Server Components application codebase → Patched React Server Components application with vulnerability fixed
Fix React 2 Shell RCE security vulnerability
Vulnerable React application code → Secured React application code without RCE vulnerability
Execute security patch via single command
Command line instruction → Completed security patch operation
Tags
Tech Stack
Comments (0)
No comments yet
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.