
This repository documents research into deserialization behavior within Next.js React Server Components (RSC) using the Flight protocol. It focuses on how malformed multipart bodies combined with Server Action request handling can lead to prototype traversal and execution primitives on certain builds.
This repository documents research into CVE-2025-55182, also known as React2Shell, a critical unsafe deserialization vulnerability in React Server Components (RSC) and frameworks that embed the RSC Flight protocol, especially Next.js App Router.
The focus here is on how malformed RSC / Flight payloads combined with Server Function (Server Action) handling can lead to execution of attacker-controlled JavaScript on the server.
This material is for defensive understanding, controlled lab reproduction, and documentation. It is not a ready exploit toolkit. Only test against systems you own or have explicit written authorization to assess.
The core bug is in the server-side RSC Flight implementation. It affects the following npm packages and versions:
Vulnerable packages and versions (Vulert)
react-server-dom-webpack
react-server-dom-parcel
react-server-dom-turbopack
Patched versions (per React advisory) (Vulert)
Any application using React 19 with RSC and one of the vulnerable packages should be treated as affected until upgraded, even if it does not explicitly define Server Functions.
Next.js inherits the vulnerable RSC implementation when using the App Router. The issue is tracked as CVE-2025-66478 for Next.js and is also rated CVSS 10.0. (SOCRadar® Cyber Intelligence Inc.)
Vulnerable Next.js versions (App Router)
All builds using React 19 RSC with:
next 15.x prior to:
next 16.x prior to 16.0.7
Canary builds starting from 14.3.0-canary.77 and later canary releases before fixes
In practice this means:
create-next-app projects that use the App Router and React 19 are in scope unless updated.Not affected in this CVE (per vendor guidance) (Black Kite)
Any framework or bundler that ships the vulnerable RSC packages can be affected. Currently listed ecosystems include: (Vulert)
@parcel/rsc@vitejs/plugin-rscIf a stack uses React 19 plus one of the vulnerable react-server-dom-* packages, assume it is affected until proven otherwise.
Based on public advisories and vendor writeups, exploitation has the following characteristics: (Vulert)
Authentication
Configuration
react-server-dom-* packagechild_process.exec themselvesNetwork exposure
Attack flow (high level)
CVSS 3.1 assessments describe this as:
In controlled testing environments, using vulnerable versions and RSC-enabled configurations, researchers and vendors report: (SOCRadar® Cyber Intelligence Inc.)