Skip to content
RCE Write-up Advanced

The React “Flight” Risk: Understanding CVE-2025–55182 and t

A deserialisation flaw in React's Flight protocol allowed an attacker to send a malformed HTTP request that led to unauthenticated remote code execution on servers using React Server Components. Attackers were observed deploying crypto-miners, Cobalt Strike beacons and shell scripts.

Cybersecurity Follow

Published on medium.com

In early December 2025, the web development world was hit with a critical security advisory. A series of vulnerabilities, headlined by CVE-2025–55182, revealed that the very feature designed to modernize React — Server Components — could be turned against the server to achieve Unauthenticated Remote Code Execution…

CyberSecurity, 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 a flaw in how React decodes serialised Flight protocol payloads, allowing malformed input to reach code execution.

Impact

An unauthenticated attacker could achieve remote code execution, and active exploitation has been observed deploying crypto-miners, Cobalt Strike beacons and shell scripts.

What the attacker needed

React 19 or Next.js with RSC; network access to the server; no authentication needed

The fix

Upgrade Next.js and the React server-dom packages to the listed patched versions and update WAF rules to inspect POST requests to Server Function endpoints.

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 parts of a website run on the server rather than in the browser. The data format used to talk to the server could be tricked by a crafted request into running the attacker's code on the server. That means someone could take over the machine without needing a login.

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.