Critical React and Next.js Enables Remote Attackers to Execute Malicious Code
A critical security vulnerability has been identified in React and Next.js, which allows remote attackers to execute malicious code on servers without authentication. This vulnerability affects React Server Components (RSC) and the "Flight" protocol used…
A critical security vulnerability has been identified in React and Next.js, which allows remote attackers to execute malicious code on servers without authentication. This vulnerability affects React Server Components (RSC) and the "Flight" protocol used for data exchange between the browser and server.
The vulnerabilities are tracked as CVE-2025-55182 for React and CVE-2025-66478 for Next.js. Both are rated at the highest severity level, enabling unauthenticated remote code execution.
Exploitation of this flaw involves sending a specially crafted HTTP request to a vulnerable server. The root issue lies in insecure deserialization during the processing of the RSC "Flight" payload. When the server processes a malicious payload, it fails to verify its structure properly, allowing attacker-controlled data to interfere with the server's execution flow, thereby executing privileged JavaScript code.
CVE ID Product Vulnerable Versions CVSS Score
CVE-2025-55182 react-server-dom-webpack 19.0.0, 19.1.0, 19.1.1, 19.2.0 10.0
This vulnerability affects React Server Components (RSC) and the "Flight" protocol used for data exchange between the browser and server.
CVE-2025-55182 react-server-dom-parcel 19.0.0, 19.1.0, 19.1.1, 19.2.0 10.0
CVE-2025-55182 react-server-dom-turbopack 19.0.0, 19.1.0, 19.1.1, 19.2.0 10.0
CVE-2025-66478 Next.js 14.3.0-canary, 15.x, 16.x (App Router) 10.0
Default setups are vulnerable, and even a standard Next.js application created with create-next-app and built for production without modifications can be exploited.
React has released patches in versions 19.0.1, 19.1.2, and 19.2.1 of the react-server-dom packages. Next.js has also issued hardened releases across supported branches. Other frameworks or bundlers incorporating the vulnerable React server implementation, such as React Router RSC, Vite, and Parcel RSC plugins, as well as RedwoodSDK and Waku, are likely affected. It is crucial for security teams to promptly upgrade React, Next.js, and all related RSC-enabled dependencies.
While hosting provider mitigations may reduce risk, they should not replace the implementation of patches. Until systems are fully updated, any exposed React Server Component deployment should be regarded as high-risk for compromise.
Based on reporting by Cyber Security News.
