
Detailed technical analysis of CVE-2025-55182 (React2Shell), a critical RCE vulnerability in React Server Components, including affected packages, exploitation mechanics, and patching guidance.
CVE-2025-55182 (“React2Shell”) is a critical Remote Code Execution (RCE) vulnerability inside React Server Components (RSC) — specifically in the React Flight protocol deserialization logic.
React’s server-side engine incorrectly parses data coming from the browser.
An attacker can send a specially crafted HTTP request to your server.
That request tricks React’s server runtime into executing arbitrary server-side JavaScript.
This allows attackers to:
create-next-app buildsIf our site uses React 19 OR Next.js with the App Router, we must assume we are vulnerable until patched.
A complete, verified list of affected packages and versions:
| Package | Vulnerable Versions | Patched Versions |
|---|---|---|
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 | same as above | same as above |
react-server-dom-turbopack | same as above | same as above |
These packages are tied to React Server Components (RSC) — the root cause.
These frameworks use RSC under the hood, so they inherited the vulnerability:
| Framework / Tool | Affected? | Notes |
|---|---|---|
| Next.js (App Router) | Yes | Most severely impacted. Vulnerability tracked as CVE-2025-66478 (now merged into CVE-2025-55182). |
| Vite RSC Plugin | Yes | Any install using React Server Components. |
| Parcel RSC Plugin | Yes | Same reason. |
| React Router RSC Preview | Yes | Bundles RSC server logic. |
| RedwoodJS RSC (RedwoodSDK) | Yes | Uses RSC runtime. |
| Waku | Yes | Experimental RSC-based runtime. |
| Any framework packaging the React 19 RSC server | Yes | Must check their advisories. |
The official and complete security guidance for staying safe.
Upgrade to patched versions:
"react-server-dom-webpack": "19.0.1" or "19.1.2" or "19.2.1"
"react-server-dom-parcel": "same"
"react-server-dom-turbopack": "same"
Run:
npm install react-server-dom-webpack@latest react-server-dom-parcel@latest react-server-dom-turbopack@latest
Upgrade to the patched Next.js versions:
| Major Version | Safe Version |
|---|---|
| 14.x (stable) | Latest 14.x security release |
| 15.x | 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7 |
| 16.x | 16.0.7 |
Run:
npm install next@latest
Alternative solution (Temporary fix and less Recommended by official documentation)These do not fully fix the issue — but reduce exposure for a short time:
Block or rate-limit multipart/form-data POST requests to:
/app//actionsAttackers rely on malformed multipart chunks to trigger the exploit.