React2Shell (CVE-2025–55182): From React Server Components to U
React Server Components deserialisation trusted client-supplied property paths, letting an attacker walk the prototype chain to the Function constructor. This allowed unauthenticated remote code execution on servers running vulnerable React and Next.js versions.
Published on medium.com
In December 2025, security researchers disclosed one of the most critical vulnerabilities ever discovered in the React ecosystem: CVE-2025–55182, commonly known as React2Shell.
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 the deserialiser used client-controlled property names to index into module exports without validating them, so prototype-chain properties such as constructor could be reached.
Impact
An unauthenticated attacker could run arbitrary commands on the server, potentially opening a reverse shell, stealing secrets, or reading and deleting files.
What the attacker needed
Vulnerable React or Next.js version; no authentication needed
The fix
The affected React packages were fixed in later patch versions that stop client-supplied paths from reaching dangerous properties.
How it was found
- Open the vulnerable application's home page.
- Send a crafted request to the server using an intercepting proxy's repeater.
- Read the command output returned in the server's response.
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.
When a browser talks to a React server, it sends data describing what to do. The server believed those instructions without checking them, so an attacker could point it at a hidden JavaScript feature that runs any code. That meant a stranger could run commands on the server without logging in.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.