Skip to content

Commit 505f580

Browse files
merging all conflicts
2 parents 19692fa + 2da4f7f commit 505f580

15 files changed

+531
-18
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@
3535
"classnames": "^2.2.6",
3636
"debounce": "^1.2.1",
3737
"github-slugger": "^1.3.0",
38+
<<<<<<< HEAD
3839
"next": "15.4.10",
40+
=======
41+
"next": "15.1.11",
42+
>>>>>>> 2da4f7fbd90ddc09835c9f85d61fd5644a271abc
3943
"next-remote-watch": "^1.0.0",
4044
"parse-numeric-range": "^1.2.0",
4145
"react": "^19.0.0",

src/components/Layout/HomeContent.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,11 @@ export function HomeContent() {
264264
color="gray"
265265
icon="framework"
266266
href="/learn/creating-a-react-app">
267+
<<<<<<< HEAD
267268
開始使用框架
269+
=======
270+
Get started with a framework
271+
>>>>>>> 2da4f7fbd90ddc09835c9f85d61fd5644a271abc
268272
</CTA>
269273
</div>
270274
</Center>

src/components/MDX/Sandpack/template.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ root.render(
3535
eject: 'react-scripts eject',
3636
},
3737
dependencies: {
38-
react: '^19.2.0',
39-
'react-dom': '^19.2.0',
38+
react: '^19.2.1',
39+
'react-dom': '^19.2.1',
4040
'react-scripts': '^5.0.0',
4141
},
4242
},

src/components/MDX/SandpackWithHTMLOutput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ export default function formatHTML(markup) {
5656
const packageJSON = `
5757
{
5858
"dependencies": {
59-
"react": "^19.2.0",
60-
"react-dom": "^19.2.0",
59+
"react": "^19.2.1",
60+
"react-dom": "^19.2.1",
6161
"react-scripts": "^5.0.0",
6262
"html-format": "^1.1.2"
6363
},
Lines changed: 203 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,203 @@
1+
---
2+
title: "Critical Security Vulnerability in React Server Components"
3+
author: The React Team
4+
date: 2025/12/03
5+
description: There is an unauthenticated remote code execution vulnerability in React Server Components. A fix has been published in versions 19.0.1, 19.1.2, and 19.2.1. We recommend upgrading immediately.
6+
7+
---
8+
9+
December 3, 2025 by [The React Team](/community/team)
10+
11+
---
12+
13+
<Intro>
14+
15+
There is an unauthenticated remote code execution vulnerability in React Server Components.
16+
17+
We recommend upgrading immediately.
18+
19+
</Intro>
20+
21+
---
22+
23+
On November 29th, Lachlan Davidson reported a security vulnerability in React that allows unauthenticated remote code execution by exploiting a flaw in how React decodes payloads sent to React Server Function endpoints.
24+
25+
Even if your app does not implement any React Server Function endpoints it may still be vulnerable if your app supports React Server Components.
26+
27+
This vulnerability was disclosed as [CVE-2025-55182](https://www.cve.org/CVERecord?id=CVE-2025-55182) and is rated CVSS 10.0.
28+
29+
The vulnerability is present in versions 19.0, 19.1.0, 19.1.1, and 19.2.0 of:
30+
31+
* [react-server-dom-webpack](https://www.npmjs.com/package/react-server-dom-webpack)
32+
* [react-server-dom-parcel](https://www.npmjs.com/package/react-server-dom-parcel)
33+
* [react-server-dom-turbopack](https://www.npmjs.com/package/react-server-dom-turbopack?activeTab=readme)
34+
35+
## Immediate Action Required {/*immediate-action-required*/}
36+
37+
A fix was introduced in versions [19.0.1](https://github.com/facebook/react/releases/tag/v19.0.1), [19.1.2](https://github.com/facebook/react/releases/tag/v19.1.2), and [19.2.1](https://github.com/facebook/react/releases/tag/v19.2.1). If you are using any of the above packages please upgrade to any of the fixed versions immediately.
38+
39+
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.
40+
41+
### Affected frameworks and bundlers {/*affected-frameworks-and-bundlers*/}
42+
43+
Some React frameworks and bundlers depended on, had peer dependencies for, or included the vulnerable React packages. The following React frameworks & bundlers are affected: [next](https://www.npmjs.com/package/next), [react-router](https://www.npmjs.com/package/react-router), [waku](https://www.npmjs.com/package/waku), [@parcel/rsc](https://www.npmjs.com/package/@parcel/rsc), [@vitejs/plugin-rsc](https://www.npmjs.com/package/@vitejs/plugin-rsc), and [rwsdk](https://www.npmjs.com/package/rwsdk).
44+
45+
See the [update instructions below](#update-instructions) for how to upgrade to these patches.
46+
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+
53+
### Vulnerability overview {/*vulnerability-overview*/}
54+
55+
[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.
56+
57+
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.
58+
59+
## Update Instructions {/*update-instructions*/}
60+
61+
<Note>
62+
63+
These instructions have been updated to include the new vulnerabilities:
64+
65+
- **Denial of Service - High Severity**: [CVE-2025-55184](https://www.cve.org/CVERecord?id=CVE-2025-55184) (CVSS 7.5)
66+
- **Source Code Exposure - Medium Severity**: [CVE-2025-55183](https://www.cve.org/CVERecord?id=CVE-2025-55183) (CVSS 5.3)
67+
68+
They also include the additional case found, patched, and disclosed as [CVE-2025-67779](https://www.cve.org/CVERecord?id=CVE-2025-67779).
69+
70+
See the [follow-up blog post](/blog/2025/12/11/denial-of-service-and-source-code-exposure-in-react-server-components) for more info.
71+
72+
</Note>
73+
74+
### Next.js {/*update-next-js*/}
75+
76+
All users should upgrade to the latest patched version in their release line:
77+
78+
```bash
79+
npm install [email protected] // for 13.3.x, 13.4.x, 13.5.x, 14.x
80+
npm install [email protected] // for 15.0.x
81+
npm install [email protected] // for 15.1.x
82+
npm install [email protected] // for 15.2.x
83+
npm install [email protected] // for 15.3.x
84+
npm install [email protected] // for 15.4.x
85+
npm install [email protected] // for 15.5.x
86+
npm install [email protected] // for 16.0.x
87+
88+
npm install [email protected] // for 15.x canary releases
89+
npm install [email protected] // for 16.x canary releases
90+
```
91+
92+
If you are on version `13.3` or later version of Next.js 13 (`13.3.x`, `13.4.x`, or `13.5.x`) please upgrade to version `14.2.35`.
93+
94+
If you are on `[email protected]` or a later canary release, downgrade to the latest stable 14.x release:
95+
96+
```bash
97+
npm install next@14
98+
```
99+
100+
See the [Next.js blog](https://nextjs.org/blog/security-update-2025-12-11) for the latest update instructions and the [previous changelog](https://nextjs.org/blog/CVE-2025-66478) for more info.
101+
102+
### React Router {/*update-react-router*/}
103+
104+
If you are using React Router's unstable RSC APIs, you should upgrade the following package.json dependencies if they exist:
105+
106+
```bash
107+
npm install react@latest
108+
npm install react-dom@latest
109+
npm install react-server-dom-parcel@latest
110+
npm install react-server-dom-webpack@latest
111+
npm install @vitejs/plugin-rsc@latest
112+
```
113+
114+
### Expo {/*expo*/}
115+
116+
To learn more about mitigating, read the article on [expo.dev/changelog](https://expo.dev/changelog/mitigating-critical-security-vulnerability-in-react-server-components).
117+
118+
### Redwood SDK {/*update-redwood-sdk*/}
119+
120+
Ensure you are on rwsdk>=1.0.0-alpha.0
121+
122+
For the latest beta version:
123+
124+
```bash
125+
npm install rwsdk@latest
126+
```
127+
128+
Upgrade to the latest `react-server-dom-webpack`:
129+
130+
```bash
131+
npm install react@latest react-dom@latest react-server-dom-webpack@latest
132+
```
133+
134+
See [Redwood docs](https://docs.rwsdk.com/migrating/) for more migration instructions.
135+
136+
### Waku {/*update-waku*/}
137+
138+
Upgrade to the latest `react-server-dom-webpack`:
139+
140+
```bash
141+
npm install react@latest react-dom@latest react-server-dom-webpack@latest waku@latest
142+
```
143+
144+
See [Waku announcement](https://github.com/wakujs/waku/discussions/1823) for more migration instructions.
145+
146+
### `@vitejs/plugin-rsc` {/*vitejs-plugin-rsc*/}
147+
148+
Upgrade to the latest RSC plugin:
149+
150+
```bash
151+
npm install react@latest react-dom@latest @vitejs/plugin-rsc@latest
152+
```
153+
154+
### `react-server-dom-parcel` {/*update-react-server-dom-parcel*/}
155+
156+
Update to the latest version:
157+
158+
```bash
159+
npm install react@latest react-dom@latest react-server-dom-parcel@latest
160+
```
161+
162+
### `react-server-dom-turbopack` {/*update-react-server-dom-turbopack*/}
163+
164+
Update to the latest version:
165+
166+
```bash
167+
npm install react@latest react-dom@latest react-server-dom-turbopack@latest
168+
```
169+
170+
### `react-server-dom-webpack` {/*update-react-server-dom-webpack*/}
171+
172+
Update to the latest version:
173+
174+
```bash
175+
npm install react@latest react-dom@latest react-server-dom-webpack@latest
176+
```
177+
178+
179+
### React Native {/*react-native*/}
180+
181+
For React Native users not using a monorepo or `react-dom`, your `react` version should be pinned in your `package.json`, and there are no additional steps needed.
182+
183+
If you are using React Native in a monorepo, you should update _only_ the impacted packages if they are installed:
184+
185+
- `react-server-dom-webpack`
186+
- `react-server-dom-parcel`
187+
- `react-server-dom-turbopack`
188+
189+
This is required to mitigate the security advisory, but you do not need to update `react` and `react-dom` so this will not cause the version mismatch error in React Native.
190+
191+
See [this issue](https://github.com/facebook/react-native/issues/54772#issuecomment-3617929832) for more information.
192+
193+
194+
## Timeline {/*timeline*/}
195+
196+
* **November 29th**: Lachlan Davidson reported the security vulnerability via [Meta Bug Bounty](https://bugbounty.meta.com/).
197+
* **November 30th**: Meta security researchers confirmed and began working with the React team on a fix.
198+
* **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
199+
* **December 3rd**: The fix was published to npm and the publicly disclosed as CVE-2025-55182.
200+
201+
## Attribution {/*attribution*/}
202+
203+
Thank you to [Lachlan Davidson](https://github.com/lachlan2k) for discovering, reporting, and working to help fix this vulnerability.

0 commit comments

Comments
 (0)