Packages / react-server-dom-webpack / Security
Source Code Exposure Vulnerability in React Server Components
Affected releases · react-server-dom-webpack
- 19.x19.0.0 – 19.2.1Fixed in 19.2.2
On 19.x, the newest line:
npm install react-server-dom-webpack@19.2.2Not affected
0.0.1
1 release
Affected
19.0.0 – 19.0.1
2 releases
Fixed
19.0.2 – 19.0.9
8 releases
Affected
19.1.0 – 19.1.2
3 releases
Fixed
19.1.3 – 19.1.10
8 releases
Affected
19.2.0 – 19.2.1
2 releases
Fixed
19.2.2 – 19.3.1
10 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 a source code exposure vulnerability in React Server Components.
React recommends updating immediately.
The vulnerability exists in versions 19.0.0, 19.0.1 19.1.0, 19.1.1, 19.1.2, 19.2.0 and 19.2.1 of:
These issues are present in the patches published last week.
Patches
Fixes were back ported to versions 19.0.2, 19.1.3, and 19.2.2.
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.