Skip to content
RCE Write-up Advanced

🎯 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.

Aditya Bhatt Follow

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.

Aditya Bhatt, on infosecwriteups.com

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

  1. Send a Server Action request with Burp Repeater.
  2. The request abuses React Flight deserialisation logic.
  3. The server deserialises the data and traverses the prototype chain to the Function constructor.
  4. Arbitrary system commands run inside the Node.js runtime.
  5. 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.

More by Aditya Bhatt

View all

25 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.