Lacework
Access helpful articles and other FAQs on Lacework
srubin
Staff
Staff
Article Id 421658
Description

This article describes a Remote Code Execution (RCE) vulnerability in React (CVE-2025-55182) and Next.js (CVE-2025-66478) that allows an unauthenticated attacker to craft a malicious HTTP request to achieve remote code execution. The vulnerability was first reported by React on December 3rd, 2025.

 

The vulnerability primarily exists in the react-server component, which is used by React and NextJS. The React Server components allow for the React client to call functions on the server to facilitate functionality such as chunk-loading and server-side rendering (SSR).

 

The vulnerability allows an unauthenticated attacker to craft a malicious HTTP request to any React Server endpoint, which is then deserialized by React to achieve remote code execution.

Scope

Affected Versions

NextJS Versions: 

  • < v15.0.5.
  • < v15.1.9.
  • < v15.2.6.
  • < v15.3.6.
  • < v15.4.8.
  • < v15.5.7.
  • < v16.0.7.

 

React Versions:
  • = v19.0.
  • >= v19.1.0, < v19.1.2.
  • = v19.2.0.

 

React Packages:

Attack Vector: An unauthenticated, malicious HTTP request.

Potential Impact: Remote Code Execution.

 

In-depth information can be found at React.Dev Blog - Critical Security Vulnerability in React Server Components.

Solution

Lacework FortiCNAPP automatically detects affected packages found in user environments via the Vulnerability Management Component and Code Security Component. FortiCNAPP will also detect Potentially Compromised Hosts via Composite Alerts and Polygraph

 

To mitigate this vulnerability, users of affected packages should immediately update to patched versions.

 

NextJS Mitigation:

 

npm install next@15.0.5   // for 15.0.x
npm install next@15.1.9   // for 15.1.x
npm install next@15.2.6   // for 15.2.x
npm install next@15.3.6   // for 15.3.x
npm install next@15.4.8   // for 15.4.x
npm install next@15.5.7   // for 15.5.x
npm install next@16.0.7   // for 16.0.x

 

React Mitigation:

 

// react-server-dom-parcel
npm install react@latest react-dom@latest react-server-dom-parcel@latest
// react-server-dom-turbopack
npm install react@latest react-dom@latest react-server-dom-turbopack@latest
// react-server-dom-webpack
npm install react@latest react-dom@latest react-server-dom-webpack@latest

 

Note: React and React-dom are not vulnerable, but must be updated alongside react-server-dom-* packages.