The Unauthenticated RCE Deserialization Disaster: Deep Dive into React Server Components Vulnerability (CVE-2025–55182)
The React Server Components Flight Protocol deserialization logic did not adequately enforce structural or type constraints on incoming payloads, allowing an attacker to inject a crafted object with a custom then method. This could lead to unauthenticated remote code execution on vulnerable Next.js App Router servers.
Published on albert-corzo.medium.com
The modern web development landscape, dominated by frameworks leveraging sophisticated server-side rendering (SSR) and client-server synchronization, faces a new, existential security threat. The architecture of React Server Components (RSC), particularly within default Next.js App Router configurations, has yielded a…
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 deserializer treated incoming Flight payloads as trusted blueprints and resolved objects that looked like promises without validating their structure, so an attacker-controlled then method was invoked.
Impact
An unauthenticated attacker could execute arbitrary shell commands on the server, leading to complete server takeover, data exfiltration, and lateral movement; generic WAFs and middleware may be bypassed, though high-fidelity detection can identify vulnerable servers.
What the attacker needed
Vulnerable Next.js App Router or RSC setup; no authentication required; network access to the server
How it was found
- Craft a malicious Flight payload containing an object that looks like a legitimate data chunk or reference.
- Define a custom, attacker-controlled then method on that object.
- Send the serialized payload in an HTTP request to the vulnerable RSC endpoint.
- The deserializer resolves the fake promise-like object and invokes the attacker-controlled then method, executing arbitrary JavaScript.
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 a server send a description of a web page to the browser. The server reads a special data format called the Flight Protocol. The mistake was that the server trusted the shape of that data too much, so a malicious request could make the server run attacker-chosen code.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.