React RCE Vulnerability (CVE-2025–55182): What It Is, Why It’
React Server Components and the Flight protocol contain an unsafe deserialisation flaw that lets an unauthenticated attacker send a crafted payload and execute arbitrary code on the server. Affected versions are React 19.0.0 to 19.2.0, and any Next.js app using RSC inherits the issue.
Published on medium.com
Some weeks in DevOps are quiet enough that you almost start trusting the universe again. And then a CVSS 10.0 RCE drops on React Server Components and that trust evaporates instantly.
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 unsafe deserialisation of attacker-controlled data in the React Server Components Flight protocol, which executes code during deserialisation.
Impact
An unauthenticated attacker could execute arbitrary JavaScript on the backend, read environment variables, extract secrets, pivot into internal systems and fully compromise the server; public proof-of-concept exploits exist and attackers are scanning.
What the attacker needed
Server runs React 19.0.0-19.2.0 RSC; or a Next.js app using RSC; network reachability to the server; no authentication needed
The fix
Upgrade React, the react-server-dom packages and Next.js to the patched versions, then cleanly rebuild and redeploy; the text does not say a specific fix was applied.
How it was found
- Check which React Server DOM packages and versions are installed.
- Check the Next.js version.
- Upgrade React, the RSC packages and Next.js to patched versions.
- Do a clean rebuild and redeploy all containers, Lambdas and web servers.
- Add temporary mitigations such as WAF rules or restricting RSC endpoints if rollout is slow.
- Monitor for unusual POST payloads, CPU spikes and odd outbound calls.
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.
Deserialisation is when a program turns data it received back into objects it can use. Here the program trusted that data too much, so a stranger could send a specially shaped message and get the server to run their code. That is remote code execution, meaning the attacker controls 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.