From Recon to RCE: Hunting React2Shell (CVE-2025–55182) for Bug
A flaw in how the React Server Components Flight protocol deserialises incoming data lets an unauthenticated attacker send a crafted request that runs arbitrary JavaScript on the server. The author demonstrates command execution, out-of-band callbacks and a runtime in-memory shell against affected Next.js App Router applications.
The root of the issue is a flaw in how the server handles data in the “Flight” protocol, which is the communication method for React Server Components.
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 protocol handler decodes attacker-controlled data without sufficient validation, allowing crafted structures to reach dangerous JavaScript behaviour on the server.
Impact
An unauthenticated attacker could run arbitrary commands on the server, potentially stealing data or installing malware such as cryptominers; the author notes that WAF filtering may block some payloads and offers bypass techniques.
What the attacker needed
Target runs vulnerable React/Next.js; no authentication needed; network access to the server
How it was found
- Find candidate React or Next.js hosts using search-engine dorks on Shodan, ZoomEye or FOFA.
- Run a Nuclei template for the CVE against the collected domains to flag potentially vulnerable hosts.
- Confirm in a browser with the RSC detector extension, which fingerprints the site and can run OS commands.
- In Burp Suite, intercept a request and send a crafted Flight payload to obtain command output in the response body.
- If the body is filtered, repeat with output placed in a response header, or use an out-of-band callback to a Collaborator or OAST domain.
- For a persistent shell, inject a runtime-only endpoint into the Node.js HTTP server and call it with a command parameter.
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 web page be built on the server rather than in the browser, and the browser and server exchange messages in a format called Flight. The server was too trusting when turning those messages back into objects, so a specially shaped message could make it run code the attacker chose. Because no login is needed, anyone who can reach the server could try it.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.