React2Shell: The Critical Vulnerability Every Developer Needs to
React Server Components deserialised HTTP request payloads without proper validation, allowing unauthenticated attackers to execute arbitrary code on the server. The text claims this could lead to data theft, ransomware, and full system compromise.
Published on uvais-khan078.medium.com
On December 3rd, 2025, the React and Next.js teams disclosed a critical remote code execution (RCE) vulnerability that has shaken the web development community. Dubbed “React2Shell” (CVE-2025–55182 for React, CVE-2025–66478 for Next.js), this vulnerability represents a CVSS 10.0 critical threat that allows…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely unsafe deserialisation of HTTP request payloads sent to React Server Function endpoints, where the server did not properly validate or sanitise the data before turning it back into executable code.
Impact
An unauthenticated attacker could execute arbitrary code with server privileges, potentially stealing secrets, accessing databases, deploying malware, and moving laterally; the text also notes active exploitation began within a day of disclosure.
What the attacker needed
Application uses React Server Components; Vulnerable React or Next.js version; No authentication required
The fix
The vulnerability was fixed by upgrading React and Next.js packages to patched versions, with an automated tool also released.
How it was found
- Identify a Next.js 15.x or 16.x application.
- Craft a malicious HTTP request targeting a React Server Component endpoint.
- Send the request to the vulnerable endpoint.
- The server attempts to deserialise the payload.
- The malicious payload executes with server privileges.
- The attacker gains access to the system, databases, environment variables, and secrets.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
React Server Components let part of a website run on the server. The server took data sent by a visitor and turned it back into code without checking it was safe, so a malicious visitor could make the server run their code. This is called remote code execution, meaning an outsider can run commands on your machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.