CVE-2025-55182
React Server Components unsafe deserialization remote code execution in the Flight protocol, also known as React2Shell
How to Fix This Vulnerability
Upgrade react-server-dom-webpack to a fixed version
Remediation Steps
- 1Upgrade react-server-dom-webpack, react-server-dom-parcel and react-server-dom-turbopack to 19.0.1, 19.1.2 or 19.2.1 (the fix for your 19.x line), or later.
- 2Upgrade Next.js to the fix for your line: 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7 or 16.0.7, or later. Next.js bundles its own copy of the server components code, so bumping react alone does not fix it. Rebuild and redeploy, because the vulnerable code is compiled into the build output.
- 3Check every internet-facing App Router and server function endpoint, including container images built before the fix. Treat a host that ran an affected version as exposed and rotate the secrets and environment variables it held.
Description
React Server Components (the react-server-dom-webpack, react-server-dom-parcel and react-server-dom-turbopack packages) deserialize attacker-controlled data unsafely in the Flight protocol that carries server function calls. An unauthenticated attacker who can send an HTTP request to a server function endpoint can run code on the server. Next.js applications that use the App Router are affected through the copy of react-server-dom-webpack that Next.js bundles; Next.js 13.x and 14.x stable releases and applications that use only the Pages Router are not affected. The Next.js advisory (GHSA-9qr9-h5gf-34mp) was first assigned CVE-2025-66478, which NVD rejected as a duplicate of CVE-2025-55182, so Next.js is tracked under this id.
Affected Packages & Versions
Am I affected?
Enter the version of react-server-dom-webpack you have installed to check it against this advisory.
Am I affected?
Enter the version of react-server-dom-parcel you have installed to check it against this advisory.
Am I affected?
Enter the version of react-server-dom-turbopack you have installed to check it against this advisory.
Am I affected?
Enter the version of next you have installed to check it against this advisory.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H