RCE Vulnerability in React and Next.js
A deserialization flaw in React Server Components packages allows remote code execution when untrusted data is processed. An attacker could execute arbitrary code on affected servers running Next.js App Router or the vulnerable React packages.
github.com
Published on github.com
A vulnerability affects certain React packages1 for versions 19.0.0, 19.1.0, 19.1.1, and 19.2.0 and frameworks that use the affected packages, including Next.js 15.x and 16.x using the App Router. The issue is tracked upstream as CVE-2025-55182.
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 deserialization of untrusted data in React Server Components packages, allowing attacker-controlled input to be executed as code.
What the attacker needed
Next.js 15.x or 16.x App Router; or vulnerable React packages
The fix
It was fixed in React 19.0.1, 19.1.2, 19.2.1 and Next.js 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7, 16.0.7, and canary releases; users should upgrade immediately.
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.
This is a security flaw in some React and Next.js software that lets an attacker run their own code on a server. It happens because the software trusts data it receives without checking it properly, so a malicious request can be turned into commands the server executes.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.