React2Shell: an exploited flaw in React Server Components and Next.js
In December 2025 React fixed a flaw in React Server Components that lets an attacker run code on the server without logging in. It is rated 10.0, the highest score. Two days later it was on the CISA list of actively exploited vulnerabilities. If you run Next.js with the App Router, check your versions today.
- CVE
CVE-2025-55182 - SeverityCVSS 10.0 Critical
- ProductReact Server Components, Next.js
- ExploitationActively exploited (CISA KEV)
What happened
React Server Components let the browser call Server Functions over HTTP. The server reads data from these requests and turns it back into objects. In affected versions this step is unsafe: crafted data in a request can make the server run code. That is CVE-2025-55182, also called React2Shell.
Meta, the CNA, rates it 10.0 under CVSS 3.1. CISA added it to its Known Exploited Vulnerabilities catalog on 5 December 2025 and lists known use in ransomware campaigns.
In October 2026 a second flaw followed: CVE-2026-126187, rated 9.5. It is also a remote code execution flaw in React Server Components, but it only affects rare cases with typed arrays. The recommended versions below fix both.
Who is affected
| Package | Vulnerable | Recommended version |
|---|---|---|
| React 19.0 | 19.0.0 | 19.0.9 or later |
| React 19.1 | 19.1.0 and 19.1.1 | 19.1.10 or later |
| React 19.2 | 19.2.0 | 19.2.9 or later |
| React 19.3 | 19.3.0 (CVE-2026-126187 only) | 19.3.1 or later |
| Next.js 15.x and 16.x (App Router) | Before the fixed releases | Latest patch of your line |
| Next.js canaries | 14.3.0-canary.77 and later | A stable fixed release |
The first fixed Next.js releases were 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7 and 16.0.7. The first fixed React releases were 19.0.1, 19.1.2 and 19.2.1. Do not stop there: install the latest patch of your line so you also get the CVE-2026-126187 fix.
The packages involved are react-server-dom-webpack, react-server-dom-parcel and react-server-dom-turbopack. The App Router uses them by default. Apps without a React server, such as plain client-side single-page apps, are not affected.
How to check your app
Run this in the project directory. It shows the versions that are installed, including nested copies.
npm ls react react-server-dom-webpack react-server-dom-parcel react-server-dom-turbopack next
# In a Docker image
docker run --rm <your-image> npm ls react nextHow to fix it
- Update Next.js to the latest patch of your line, and React to 19.0.9, 19.1.10, 19.2.9, 19.3.1 or later.
- Commit the updated lockfile (package-lock.json, yarn.lock or pnpm-lock.yaml).
- Rebuild your Docker images, also when only the lockfile changed, and redeploy every server.
- Run
npm lsagain inside the running container to confirm the new versions.
React lists no workaround. Updating the packages and redeploying is the only fix.
What to look for
If your app ran a vulnerable version after early December 2025, check for signs of compromise: unknown processes run by the Node user, new files in the app or temp directories, unexpected outbound connections, and changed environment secrets. Rotate API keys and database passwords if you find anything. A web application penetration test covers Server Functions and the rest of your Next.js app. Self-hosted Next.js apps should also read about the image optimization flaw.
Questions
My app uses the Pages Router only. Am I affected?
The advisories name the App Router, which uses React Server Components by default. Check with npm ls whether the server packages are installed, and update Next.js anyway.
Is a client-side React app affected?
No. Apps without a React server, such as plain single-page apps, do not run Server Functions. Update React anyway as part of normal maintenance.
Is a web application firewall enough?
No. A firewall may block some attempts, but there is no workaround. Update React and Next.js.
This article is written for defenders and contains no exploit code. It reflects the vendor advisories on the date above; always check the vendor advisory for the latest fixed versions.
Not sure whether you are affected?
We check your servers and applications for this vulnerability and others like it, and give you a clear report with fixes.