What is React2Shell (CVE-2025-55182 / CVE-2025-66478)?
React2Shell is a critical remote code execution vulnerability in React Server Components (RSC). It is tracked as CVE-2025-55182 in React itself and CVE-2025-66478 for its downstream impact on Next.js applications using the App Router.
In vulnerable versions, the RSC protocol could be tricked into unsafe deserialization of attacker-controlled data. That data could then directly invoke server-side APIs and run arbitrary shell commands via Node.js:
- An attacker sends a crafted HTTP request to a vulnerable endpoint.
- The server processes the malicious RSC payload and ends up running arbitrary commands inside the Node.js process.
- Those commands run with the same privileges as the web application on that server.
The vulnerability was rated CVSS 10.0 (critical) and has been widely exploited in the wild against unpatched applications.