CVE-2025–55182 for Dummies: A High-Level Explanation
React Server Components deserialised untrusted input without validation, allowing an attacker to reach JavaScript's Function constructor and achieve remote code execution. The author demonstrates a proof-of-concept that chains prototype properties to execute arbitrary commands on a test server.
medium.com
Published on medium.com
RSC is a React feature that lets certain components run on the server instead of in the browser. This reduces the amount of work your browser has to do, which can make pages load faster.
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 deserialisation process allowed access to JavaScript's internal prototype chain, enabling the attacker to reach the Function constructor and execute arbitrary code.
Impact
An attacker could achieve remote code execution, effectively gaining a pseudo-terminal on the target website.
What the attacker needed
Server running vulnerable React Server Components; ability to send crafted requests to the server
How it was found
- Clone the proof-of-concept repository and change into the test server directory.
- Install Node Version Manager and use Node.js version 20.
- Install Next.js and start the development server.
- Run the proof-of-concept script with the target URL and a command to execute.
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 run on the server instead of in the browser. This report shows that the server accepted specially crafted data and turned it into live code without checking it first. An attacker could use that to run their own commands on the server, which is very serious.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.