π― React2Shell (CVE-2025β55182) β From React Server Components to Full RCE
React Server Components deserialised attacker-controlled Flight data without restricting property access, so a crafted request could walk the prototype chain to the JavaScript Function constructor. This let an unauthenticated attacker run arbitrary JavaScript and OS commands on the server.
Published on infosecwriteups.com
CVE-2025β55182, nicknamed React2Shell, is one of those vulnerabilities that instantly makes defenders nervous π¬. Discovered in December 2025, it carries a CVSS score of 10.0, which already tells you this isnβt some edge-case bug.
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
Impact
An unauthenticated attacker could execute OS commands and read files, though the process ran as a non-root user, which still allowed secret theft and lateral movement.
What the attacker needed
No authentication; vulnerable React or Next.js version; single crafted HTTP request
The fix
It was fixed in React 19.0.1, 19.1.2 and 19.2.1, and defenders should patch and audit dependencies.
How it was found
- Send a Server Action request with Burp Repeater.
- The request abuses React Flight deserialisation logic.
- The server deserialises the data and traverses the prototype chain to the Function constructor.
- Arbitrary system commands run inside the Node.js runtime.
- The command output is reflected in the HTTP response body.
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 web app run on the server, and the browser talks to it using a data format called Flight. The server read that incoming data too loosely, so a visitor could point it at built-in JavaScript machinery and make the server run their own code. That means running commands on the machine 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.