Skip to content

Commit ddc73f2

Browse files
committed
add update instructions
1 parent 4704ce6 commit ddc73f2

File tree

1 file changed

+105
-2
lines changed

1 file changed

+105
-2
lines changed

src/content/blog/2025/12/03/critical-security-vulnerability-in-react-server-components.md

Lines changed: 105 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,122 @@ Some React frameworks and bundlers depended on, had peer dependencies for, or in
4444

4545
We will update this post with upgrade instructions on how to upgrade as they become available.
4646

47+
### Hosting Provider Mitigations {/*hosting-provider-mitigations*/}
48+
49+
We have worked with a number of hosting providers to apply temporary mitigations.
50+
51+
You should not depend on these to secure your app, and still update immediately.
52+
4753
### Vulnerability overview {/*vulnerability-overview*/}
4854

4955
[React Server Functions](https://react.dev/reference/rsc/server-functions) allow a client to call a function on a server. React provides integration points and tools that frameworks and bundlers use to help React code run on both the client and the server. React translates requests on the client into HTTP requests which are forwarded to a server. On the server, React translates the HTTP request into a function call and returns the needed data to the client.
5056

5157
An unauthenticated attacker could craft a malicious HTTP request to any Server Function endpoint that, when deserialized by React, achieves remote code execution on the server. Further details of the vulnerability will be provided after the rollout of the fix is complete.
5258

53-
### Timeline {/*timeline*/}
59+
## Update Instructions {/*update-instructions*/}
60+
61+
### Next.js {/*update-next-js*/}
62+
63+
All users should upgrade to the latest patched version in their release line:
64+
65+
```bash
66+
npm install [email protected] // for 15.0.x
67+
npm install [email protected] // for 15.1.x
68+
npm install [email protected] // for 15.2.x
69+
npm install [email protected] // for 15.3.x
70+
npm install [email protected] // for 15.4.x
71+
npm install [email protected] // for 15.5.x
72+
npm install [email protected] // for 16.0.x
73+
```
74+
75+
If you are on Next.js 14.3.0-canary.77 or a later canary release, downgrade to the latest stable 14.x release:
76+
77+
```bash
78+
npm install next@14
79+
```
80+
81+
See the [Next.js changelog](https://vercel.com/changelog/cve-2025-55182) for more info.
82+
83+
### React Router {/*update-react-router*/}
84+
85+
If you are using React Router's unstable RSC APIs, you should upgrade the following package.json dependencies if they exist:
86+
87+
```bash
88+
npm install react@latest
89+
npm install react-dom@latest
90+
npm install react-server-dom-parcel@latest
91+
npm install react-server-dom-webpack@latest
92+
```
93+
94+
### Expo {/*expo*/}
95+
96+
Upgrade to the latest `react-server-dom-webpack`:
97+
98+
```bash
99+
npm install react@latest react-dom@latest react-server-dom-webpack@latest
100+
```
101+
102+
### Redwood SDK {/*update-redwood-sdk*/}
103+
104+
Ensure you are on rwsdk>=1.0.0-alpha.0
105+
106+
For the latest beta version:
107+
108+
```bash
109+
npm install rwsdk@latest
110+
```
111+
112+
Upgrade to the latest `react-server-dom-webpack`:
113+
114+
```bash
115+
npm install react@latest react-dom@latest react-server-dom-webpack@latest
116+
```
117+
118+
See [Redwood docs](https://docs.rwsdk.com/migrating/) for more migration instructions.
119+
120+
### Waku {/*update-waku*/}
121+
122+
Upgrade to the latest `react-server-dom-webpack`:
123+
124+
```bash
125+
npm install react@latest react-dom@latest react-server-dom-webpack@latest
126+
```
127+
128+
### `vite/plugin-rsc` {/*vite-plugin-rsc*/}
129+
130+
A patch has not been published yet, we will update this post when the patch is available.
131+
132+
### `react-server-dom-parcel` {/*update-react-server-dom-parcel*/}
133+
134+
Update to the latest version:
135+
136+
```bash
137+
npm install react@latest react-dom@latest react-server-dom-parcel@latest
138+
```
139+
140+
### `react-server-dom-turbopack` {/*update-react-server-dom-turbopack*/}
141+
142+
Update to the latest version:
143+
144+
```bash
145+
npm install react@latest react-dom@latest react-server-dom-turbopack@latest
146+
```
147+
148+
### `react-server-dom-webpack` {/*update-react-server-dom-webpack*/}
149+
150+
Update to the latest version:
151+
152+
```bash
153+
npm install react@latest react-dom@latest react-server-dom-webpack@latest
154+
```
155+
156+
## Timeline {/*timeline*/}
54157

55158
* **November 29th**: Lachlan Davidson reported the security vulnerability via [Meta Bug Bounty](https://bugbounty.meta.com/).
56159
* **November 30th**: Meta security researchers confirmed and began working with the React team on a fix.
57160
* **December 1st**: A fix was created and the React team began working with affected hosting providers and open source projects to validate the fix, implement mitigations and roll out the fix
58161
* **December 3rd**: The fix was published to npm and the publicly disclosed as CVE-2025-55182.
59162

60-
### Attribution {/*attribution*/}
163+
## Attribution {/*attribution*/}
61164

62165
Thank you to [Lachlan Davidson](https://github.com/lachlan2k) for discovering, reporting, and working to help fix this vulnerability.

0 commit comments

Comments
 (0)