Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/vercel-labs/fix-react2shell-next
Vulnerability ScannersCode AnalysisScripting & AutomationWeb SecurityDevSecOpsSupply Chain Security
GitHubvercel-labs/fix-react2shell-next

fix-react2shell-next

One command to fix CVE-2025-66478 (React 2 Shell RCE) in your Next.js / React RSC app.

View Repository
40163489 months agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

fix-react2shell-next

fix-react2shell-next

One command to fix CVE-2025-66478 (React 2 Shell RCE) in your Next.js / React RSC app.

root@kitploit:~
npx fix-react2shell-next

Deterministic version bumps per the official advisories.

What it does

  1. Recursively scans all package.json files (handles monorepos)
  2. Checks for vulnerable versions of:
    • next
    • react-server-dom-webpack
    • react-server-dom-parcel
    • react-server-dom-turbopack
  3. Patches to the correct fixed version based on your current version
  • Refreshes your lockfile with the detected package manager
  • Affected Versions

    Next.js

    Current VersionPatched Version
    15.0.0 – 15.0.415.0.5
    15.1.0 – 15.1.815.1.9
    15.2.0 – 15.2.515.2.6
    15.3.0 – 15.3.515.3.6
    15.4.0 – 15.4.715.4.8
    15.5.0 – 15.5.615.5.7
    16.0.0 – 16.0.616.0.7
    15.x canaries15.6.0-canary.58
    16.x canaries16.1.0-canary.12
    14.3.0-canary.77+Downgrade to 14.3.0-canary.76 or upgrade to 15.0.5

    React RSC Packages

    Current VersionPatched Version
    19.0.019.0.1
    19.1.0, 19.1.119.1.2
    19.2.019.2.1

    Usage

    Check & Fix (Interactive)

    root@kitploit:~
    npx fix-react2shell-next
    

    Auto-fix (CI / Non-interactive)

    root@kitploit:~
    npx fix-react2shell-next --fix
    

    Check Only (Dry Run)

    root@kitploit:~
    npx fix-react2shell-next --dry-run
    

    JSON Output (for scripting)

    root@kitploit:~
    npx fix-react2shell-next --json
    

    Example Output

    root@kitploit:~
    🔍 fix-react2shell-next - CVE-2025-66478 vulnerability scanner
    
    📂 Found 3 package.json file(s)
    
    🚨 Found 2 vulnerable file(s):
    
      📄 package.json
         next: ^15.1.0 → 15.1.9
    
      📄 apps/web/package.json
         next: ^15.4.3 → 15.4.8
         react-server-dom-webpack: 19.1.0 → 19.1.2
    
    🔧 Apply fixes? [Y/n] y
    
    🔧 Applying fixes...
    
       ✓ Updated package.json
       ✓ Updated apps/web/package.json
    
    📦 Package manager: pnpm
    🔄 Refreshing lockfile...
    
    $ pnpm install
    
    ✅ Patches applied!
       Remember to test your app and commit the changes.
    

    Monorepo Support

    The tool automatically finds all package.json files in your project, excluding:

    • node_modules
    • .next, .turbo, .vercel, .nuxt
    • dist, build, .output
    • coverage

    Works with npm, yarn, pnpm, and bun workspaces.

    References

    • GitHub Advisory GHSA-9qr9-h5gf-34mp
    • Next.js Security Advisory
    • React Security Advisory

    License

    MIT

    Download Tool