react2shell Cve 2025 55182 Why Your Frontend Library Just Gave Root Access To Your Backend
The deserialiser in React Server Components trusted incoming Flight chunks, so a crafted payload could be treated as a Promise and executed on the server. An unauthenticated attacker could send one HTTP request to run commands on the host.
Published on systemweakness.com
CVE-2025–55182, dubbed “React2Shell,” is a maximum severity (CVSS 10.0) vulnerability in React Server Components (RSC). If you use Next.js (App Router) or React 19, you are likely vulnerable by default.
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 insecure deserialisation: the Flight deserialiser accepted attacker-controlled objects and resolved them as Promises, letting a gadget chain reach command execution.
Impact
An unauthenticated remote attacker could gain full server control and run commands as the Node.js process user; running the container as a limited user limits the damage after the breach.
What the attacker needed
Next.js App Router or React 19 in use; no login needed; network reach to the server
The fix
It was fixed by upgrading React to 19.2.1 and Next.js to 16.0.7 or 15.5.7, with WAF rules and non-root containers as extra defence.
How it was found
- Send a POST request carrying a crafted Flight payload.
- The payload presents an object with a then method so React treats it as a Promise.
- React resolves the fake Promise and runs the attached code.
- The gadget chain calls a process execution function to run commands or open a reverse shell.
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.
Modern React apps can send data from the browser back to the server in a special format. The server unpacks that data and runs it, and here it did so without checking whether the data was safe. A stranger could therefore send a single request that made the server run their own commands.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.