Skip to content
RCE Write-up Advanced

React2Shell (CVE-2025–55182): Critical Risk and Urgent Mitigati

A critical unsafe deserialisation flaw in React Server Components' Flight protocol allows an unauthenticated attacker to send a crafted HTTP request and achieve remote code execution on the server. Threat actors are actively exploiting it in the wild.

Divyesh Vaishnav Follow

Published on medium.com

On December 3, 2025 the maintainers of React disclosed a critical security vulnerability, now tracked as CVE-2025–55182 — dubbed “React2Shell.” This flaw affects server-side React deployments (React Server Components) and has a maximum severity rating: CVSS score 10.0. Amazon Web Services, Inc.+2Tenable®+2

Divyesh Vaishnav, on medium.com

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 in the Flight protocol used by React Server Components, where untrusted request data is converted into objects without proper validation.

Impact

An unauthenticated attacker could achieve remote code execution, leading to data theft, cryptomining, or persistent unauthorised access; WAF rules may block some attempts but are not a full defence.

What the attacker needed

Server runs vulnerable React Server Components; attacker can send HTTP requests to the server; no authentication required

The fix

Upgrade the react-server-dom-* packages to versions 19.0.1, 19.1.2, or 19.2.1 and Next.js to patched versions such as 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7, or 16.0.7; if immediate patching is not possible, apply WAF rules and monitor logs.

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 is a feature that lets parts of a website run on the server. A bug in how it reads data sent by users means an attacker can send a malicious request that makes the server run their code. This is very serious because the attacker does not need to log in first.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.