What to do3 steps
Upgrade the RSC packages to 19.0.1, 19.1.2 or 19.2.1.
For Next.js, upgrade to 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7 or 16.0.7 (or later).
On 14.3 canaries, downgrade to
next@14.Rotate secrets if the app ran unpatched after disclosure.
This applies when the app was unpatched and online after disclosure. Hosting-provider mitigations are temporary; React states there is no workaround.
Labready to run
vt-2025-55182
React Server Components - Remote Code Execution
VT lab by HappyHackingSpace
Are you affected?only if all are true
- No authentication: a crafted request to any Server Function endpoint is enough. Apps that support RSC but define no Server Functions can still be vulnerable.
- Not affected: React code with no server, or no framework, bundler or plugin that supports React Server Components.
- Next.js: App Router on 15.x / 16.x and 14.3.0-canary.77+. Not 13.x, 14.x stable, the Pages Router or the Edge Runtime. No workaround; upgrade.
Check your version
- npm, in the app directory
npm ls next react-server-dom-webpack react-server-dom-parcel react-server-dom-turbopack - Prompt for your own agent, read-onlyAm I affected by React2Shell?
Read the prompt
Check whether the systems I am authorized to inspect are affected by React2Shell (CVE-2025-55182). The React Server Components Flight reply decoder unsafely deserializes requests to Server Function endpoints, giving unauthenticated RCE in React 19 and Next.js App Router apps. It is exploitable under these conditions: - No authentication: a crafted request to any Server Function endpoint is enough. Apps that support RSC but define no Server Functions can still be vulnerable. - Not affected: React code with no server, or no framework, bundler or plugin that supports React Server Components. - Next.js: App Router on 15.x / 16.x and 14.3.0-canary.77+. Not 13.x, 14.x stable, the Pages Router or the Edge Runtime. No workaround; upgrade. Fixed releases: - react-server-dom-*: 19.0.1 (branch 19.0), 19.1.2 (branch 19.1), 19.2.1 (branch 19.2); before 19.0 is not affected Next.js App Router apps: upgrade Next.js itself (15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7 or 16.0.7). Commands the catalog lists to find the version or the setting (read each one before you run it): - npm, in the app directory: npm ls next react-server-dom-webpack react-server-dom-parcel react-server-dom-turbopack What the catalog says to do on an affected system (report these, do not carry them out): 1. Upgrade the RSC packages to 19.0.1, 19.1.2 or 19.2.1. 2. On 14.3 canaries, downgrade to next@14. 3. Rotate secrets if the app ran unpatched after disclosure. For each host, container image or application, report affected, not affected, fixed or unknown, with the evidence, and list anything you could not access. Work read-only: do not change configuration, restart services or send exploit input. More: https://react.2shell.wtf/react2shell
Affected versions3 branches
| react-server-dom-* branch | Fixed in |
|---|---|
| 19.0 | 19.0.1 |
| 19.1 | 19.1.2 |
| 19.2 | 19.2.1 |
react-server-dom-* before 19.0 is not affected.
Next.js App Router apps: upgrade Next.js itself (15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7 or 16.0.7).
Proof of concept1 public PoC
For testing systems you own or are authorized to test. A PoC repository can be fake or carry malware: read it before you run it.
- Open the PoC
Public proof of concept on GitHub. The finder's own repository, lachlan2k/React2Shell-CVE-2025-55182-original-poc, holds the original PoCs sent to Meta; a more-starred independent write-up with a local test server is msanft/CVE-2025-55182.
Timeline4 events
Reported to the vendor
Reported through Meta Bug Bounty
Patched
Fixed packages published to npm and disclosed
Added to CISA KEV
Added to CISA Known Exploited Vulnerabilities
Public PoC
Public proof of concept on GitHub. The finder's own repository, lachlan2k/React2Shell-CVE-2025-55182-original-poc, holds the original PoCs sent to Meta; a more-starred independent write-up with a local test server is msanft/CVE-2025-55182.
Sources7 links
Sources checked on . This page tells you how to check and what to install. It cannot tell you that you are safe.
6 changes since it was published
- Linked the finder's public proof of concept.
- Remediation steps got short titles; no fact changed.
- Removed an unsourced remediation step (the fix-react2shell-next tool).
- Added commands to check the installed version.
- Added the Vulnerable Target lab; the fix-react2shell-next tool link was removed.
- Added exploit conditions from the react.dev advisory and Next.js CVE-2025-66478 post.