Skip to content
RCE Write-up Advanced

The Anatomy of React2Shell: Understanding the CVE-2025–55182 Cr

A critical unauthenticated remote code execution vulnerability in React Server Components' Flight protocol allows an attacker to send a crafted serialized payload that triggers execution of arbitrary code on the server. This gives the attacker full control of the Node.js process, enabling reverse shells and lateral movement.

SecureSlate Follow

Published on medium.com

In the final quarter of 2025, the web development community faced its most significant security crisis since the discovery of Log4Shell. Labeled CVE-2025–55182 and popularly known as React2Shell, this vulnerability represents a “perfect storm” in modern web architecture.

SecureSlate, on medium.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

Root cause

The RSC parser over-trusted serialized data, allowing an attacker to inject a malicious 'thenable' object that the server would execute as code during deserialization.

Impact

An unauthenticated attacker could execute arbitrary commands with Node.js privileges, leading to full server compromise and lateral movement; standard signature-based WAFs initially struggled to detect the exploit.

What the attacker needed

Unpatched React 19 RSC application; network access to a Server Action endpoint; no credentials required

The fix

Upgrade React to fully patched versions (19.0.3+, 19.1.4+, or 19.2.3+) and Next.js to the latest stable; if immediate patching is not possible, implement edge filtering for the Next-Action header and suspicious Flight payload patterns.

How it was found

  1. Find an endpoint that accepts Server Actions or RSC requests.
  2. Send a POST request with a crafted Flight payload containing a malicious thenable object.
  3. The server deserializes the payload and triggers the thenable's .then() method, executing attacker-controlled code.
  4. Use the code execution to spawn a reverse shell for persistent access.

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 parts of a website run on the server instead of in the browser. The server and browser exchange data in a special format called the Flight protocol. The bug is that the server trusted this data too much: a malicious message could make the server run code chosen by the attacker, like a remote control for the server.

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 SecureSlate

View all

1 more disclosed report, 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.