Skip to content
RCE Write-up Advanced

React2Shell (CVE-2025-55182): Everything You Need to Know About the Critical React Vulnerability

A critical unauthenticated remote code execution vulnerability exists in the React Server Components 'Flight' protocol due to insecure deserialization, allowing an attacker to execute arbitrary code on the server with a crafted HTTP request. Default Next.js configurations are vulnerable, and exploitation has been observed in the wild.

Gili Tikochinski Follow

Published on wiz.io

A critical vulnerability has been identified in the React Server Components (RSC) "Flight" protocol, affecting the React 19 ecosystem and frameworks that implement it, most notably Next.js. Assigned CVE-2025-55182, this flaw allows for unauthenticated remote code execution (RCE) on the server due to insecure…

Gili Tikochinski, on wiz.io

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 server fails to properly validate the structure of incoming RSC payloads, leading to unsafe deserialization that allows attacker-controlled data to influence server-side execution.

Impact

An attacker could execute arbitrary code on the server, leading to credential harvesting, cryptocurrency mining, and other post-exploitation activities; exploitation has been observed in the wild.

What the attacker needed

No authentication required; target runs vulnerable React/Next.js

The fix

The vulnerability was fixed in hardened releases of React and Next.js; users should upgrade to the patched versions.

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 serious security flaw in a popular web development tool called React Server Components. It lets an attacker run their own code on a website's server just by sending a specially crafted request, without needing any login. That means they could steal data, install malware, or take control of the server.

What is RCE?

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

More by Gili Tikochinski

View all

2 more disclosed reports, best first.

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.