React2Shell (CVE-2025–55182)
An unsafe deserialisation flaw in the React Server Components Flight protocol lets an unauthenticated attacker send one crafted HTTP request to an exposed server function endpoint and run arbitrary code on the server. The text says public proofs of concept exist and that in-the-wild scanning was seen shortly after disclosure.
medium.com
Published on medium.com
React2Shell, tracked as CVE-2025–55182, is a critical remote code execution (RCE) vulnerability in React Server Components (RSC). It stems from an unsafe deserialization flaw in the RSC “Flight” protocol, which is used for streaming server-rendered content.
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 RSC Flight payload parser lacked sufficient validation, so attacker-supplied objects with a .then method were auto-resolved as promises, re-entering the parser and polluting properties on internal objects to reach existing code gadgets.
Impact
An attacker could run arbitrary code on the server, leading to data theft, backdoors or ransomware, though the text notes some provider-level runtime protections may block exploitation even on unpatched versions.
What the attacker needed
An exposed RSC endpoint over HTTP; no authentication needed; no user interaction needed
The fix
It was fixed by upgrading React to 19.0.1, 19.1.2 or 19.2.1 and Next.js to the listed patched versions, with WAF rules and log monitoring as interim measures.
How it was found
- Build a request that looks like legitimate RSC chunks but carries malicious objects that abuse promise resolution.
- Use a controlled object to reach internal chunk representations in the runtime.
- Chain the manipulations to pollute properties on key objects and reach gadgets.
- Trigger the runtime to run arbitrary commands on the server.
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 pieces of a web page to the browser in a streamed format called Flight. The code that reads that format on the server did not check incoming data carefully enough, so a stranger could send a specially shaped request and make the server run their commands. No login was needed, which is why it was rated maximum severity.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.