npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@amirmalek/fix-react2shell

v1.0.2

Published

CLI tool to detect and fix CVE-2025-55182 (React2Shell) vulnerability in React Server Components and Next.js

Readme

fix-react2shell

A CLI tool to detect and fix the critical CVE-2025-55182 (React2Shell) vulnerability in React Server Components and Next.js applications.

The Vulnerability

CVE-2025-55182 is a critical (CVSS 10.0) unauthenticated remote code execution vulnerability affecting:

  • React Server DOM packages (versions 19.0.0, 19.1.0, 19.1.1, 19.2.0)
  • Next.js (versions 14.3.0-canary.77 through unpatched 15.x and 16.x)

The vulnerability is an unsafe deserialization flaw in the React Server Components Flight protocol. Exploitation requires only a crafted HTTP request, and public exploit code is available.

There is no workaround — upgrading to a patched version is required.

More Information

Installation

Option 1: Run directly with npx

npx @amirmalek/fix-react2shell

Option 2: Clone this repository

git clone https://github.com/amir-malek/react-cve-2025-55182.git
cd react-cve-2025-55182
node fix-react2shell.js

Option 3: Download the script

curl -O https://raw.githubusercontent.com/amir-malek/react-cve-2025-55182/main/fix-react2shell.js
node fix-react2shell.js

Usage

Navigate to your React/Next.js project directory and run:

# Dry-run mode (default) - shows what would be upgraded
npx @amirmalek/fix-react2shell

# Actually perform the upgrades
npx @amirmalek/fix-react2shell --fix

# Show detailed version information
npx @amirmalek/fix-react2shell --verbose

# Show help
npx @amirmalek/fix-react2shell --help

Example Output

╔══════════════════════════════════════════════════════════════╗
║        CVE-2025-55182 (React2Shell) Vulnerability Scanner    ║
╚══════════════════════════════════════════════════════════════╝

Package manager: yarn
Project: my-nextjs-app

⚠ Found 1 vulnerable package(s):

  ✗ next
    Current: 15.3.5 → Safe: 15.3.7

────────────────────────────────────────────────────────────
DRY RUN MODE - No changes made.
Run with --fix to upgrade packages.

Command that would be run:
  yarn add [email protected]

Features

  • Smart Detection — Only flags actually vulnerable versions, not all React 19 projects
  • Multi-Package Manager Support — Automatically detects and uses npm, yarn, or pnpm
  • Safe by Default — Runs in dry-run mode unless --fix is explicitly passed
  • Zero Dependencies — Uses only Node.js built-in modules
  • Portable — Works in any project directory

Vulnerable Versions

React Server DOM Packages

| Package | Vulnerable | Safe | |---------|-----------|------| | react-server-dom-webpack | 19.0.0, 19.1.0, 19.1.1, 19.2.0 | 19.0.1, 19.1.2, 19.2.1 | | react-server-dom-parcel | 19.0.0, 19.1.0, 19.1.1, 19.2.0 | 19.0.1, 19.1.2, 19.2.1 | | react-server-dom-turbopack | 19.0.0, 19.1.0, 19.1.1, 19.2.0 | 19.0.1, 19.1.2, 19.2.1 |

Next.js

| Branch | Safe Version | |--------|-------------| | 15.0.x | 15.0.5 | | 15.1.x | 15.1.9 | | 15.2.x | 15.2.6 | | 15.3.x | 15.3.6 | | 15.4.x | 15.4.8 | | 15.5.x | 15.5.7 | | 16.0.x | 16.0.7 |

After Upgrading

Once you have patched your versions and redeployed your application, it is strongly recommended to:

  1. Rotate all application secrets (API keys, database credentials, JWT secrets, etc.)
  2. Review application logs for any signs of prior exploitation
  3. Audit your infrastructure if you suspect compromise

License

MIT

Contributing

Issues and pull requests are welcome at github.com/amir-malek/react-cve-2025-55182.