Packages / react-server-dom-webpack / Security
React Server Components are Vulnerable to RCE
Affected releases · react-server-dom-webpack
- 19.x19.0.0 – 19.2.0Fixed in 19.2.1
On 19.x, the newest line:
npm install react-server-dom-webpack@19.2.1Not affected
0.0.1
1 release
Affected
19.0.0
1 release
Fixed
19.0.1 – 19.0.9
9 releases
Affected
19.1.0 – 19.1.1
2 releases
Fixed
19.1.2 – 19.1.10
9 releases
Affected
19.2.0
1 release
Fixed
19.2.1 – 19.3.1
11 releases, latest
Is your project affected?
Paste your package.json, or type the range you declare for react-server-dom-webpack. It is read in your browser and sent nowhere.
What happens
Impact
There is an unauthenticated remote code execution vulnerability in React Server Components.
We recommend upgrading immediately.
The vulnerability is present in versions 19.0.0, 19.1.0, 19.1.1, and 19.2.0 of:
Patches
A fix was introduced in versions 19.0.1, 19.1.2, and 19.2.1. If you are using any of the above packages please upgrade to any of the fixed versions immediately.
If your app’s React code does not use a server, your app is not affected by this vulnerability. If your app does not use a framework, bundler, or bundler plugin that supports React Server Components, your app is not affected by this vulnerability.
References
See the blog post for more information and upgrade instructions.