React2Shell (CVE-2025–55182): 10 Puanlık Kritik Zafiyeti Nası
A deserialisation flaw in React Server Components' requireModule handling let a crafted request reach JavaScript global functions and run commands on the server. The author used it in a lab to run whoami and read a flag file without authentication.
Published on medium.com
Siber güvenlik dünyasında bazı zafiyetler vardır, çıktığı gün ortalığı ayağa kaldırır. Geçtiğimiz günlerde duyurulan CVE-2025–55182 (React2Shell) tam olarak böyleydi.
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 the server-side requireModule function deserialised client-supplied data without strict validation, allowing access to JavaScript global functions and command execution.
Impact
An unauthenticated attacker could run commands on the server as a standard user, and the text notes default Next.js setups were also affected.
What the attacker needed
A vulnerable React/Next.js version; ability to send crafted HTTP requests
The fix
Upgrade React and Next.js to the patched versions the author lists.
How it was found
- Capture a POST request to the target server with an intercepting proxy.
- Place the malicious data in the multipart/form-data body.
- Send the request so the server triggers the Node.js child_process module.
- Modify the payload to run a whoami command and confirm command execution.
- Change the payload to read a flag file and find its contents in the error response.
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 is a popular tool for building websites, and its newer server parts send data back and forth in a special format. The server did not check that data carefully, so a rigged request could make it run commands of the attacker's choosing. That means someone could take over the machine without logging in first.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.