Skip to content

Commit 2a0fed0

Browse files
authored
12/11 blog post (#8193)
1 parent cffb6a7 commit 2a0fed0

File tree

5 files changed

+199
-2
lines changed

5 files changed

+199
-2
lines changed

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ If your app’s React code does not use a server, your app is not affected by th
4242

4343
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).
4444

45-
We will update this post with upgrade instructions on how to upgrade as they become available.
45+
See the [update instructions below](#update-instructions) for how to upgrade to these patches.
4646

4747
### Hosting Provider Mitigations {/*hosting-provider-mitigations*/}
4848

@@ -156,6 +156,22 @@ Update to the latest version:
156156
npm install react@latest react-dom@latest react-server-dom-webpack@latest
157157
```
158158

159+
160+
### React Native {/*react-native*/}
161+
162+
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.
163+
164+
If you are using React Native in a monorepo, you should update _only_ the impacted packages if they are installed:
165+
166+
- `react-server-dom-webpack`
167+
- `react-server-dom-parcel`
168+
- `react-server-dom-turbopack`
169+
170+
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.
171+
172+
See [this issue](https://github.com/facebook/react-native/issues/54772#issuecomment-3617929832) for more information.
173+
174+
159175
## Timeline {/*timeline*/}
160176

161177
* **November 29th**: Lachlan Davidson reported the security vulnerability via [Meta Bug Bounty](https://bugbounty.meta.com/).
Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
---
2+
title: "Denial of Service and Source Code Exposure in React Server Components"
3+
author: The React Team
4+
date: 2025/12/11
5+
description: Security researchers have found and disclosed two additional vulnerabilities in React Server Components while attempting to exploit the patches in last week’s critical vulnerability. High vulnerability Denial of Service (CVE-2025-55184), and medium vulnerability Source Code Exposure (CVE-2025-55183)
6+
7+
8+
---
9+
10+
December 11, 2025 by [The React Team](/community/team)
11+
12+
---
13+
14+
<Intro>
15+
16+
Security researchers have found and disclosed two additional vulnerabilities in React Server Components while attempting to exploit the patches in last week’s critical vulnerability.
17+
18+
**These new vulnerabilities do not allow for Remote Code Execution.** The patch for React2Shell remains effective at mitigating the Remote Code Execution exploit.
19+
20+
</Intro>
21+
22+
---
23+
24+
The new vulnerabilities are disclosed as:
25+
26+
- **Denial of Service - High Severity**: [CVE-2025-55184](https://www.cve.org/CVERecord?id=CVE-2025-55184) (CVSS 7.5)
27+
- **Source Code Exposure - Medium Severity**: [CVE-2025-55183](https://www.cve.org/CVERecord?id=CVE-2025-55183) (CVSS 5.3)
28+
29+
These issues are present in the patches published last week.
30+
31+
We recommend upgrading immediately due to the severity of the newly disclosed vulnerabilities.
32+
33+
34+
<Note>
35+
36+
#### It’s common for critical CVEs to uncover follow‑up vulnerabilities. {/*its-common-for-critical-cves-to-uncover-followup-vulnerabilities*/}
37+
38+
When a critical vulnerability is disclosed, researchers scrutinize adjacent code paths looking for variant exploit techniques to test whether the initial mitigation can be bypassed.
39+
40+
This pattern shows up across the industry, not just in JavaScript. For example, after [Log4Shell](https://nvd.nist.gov/vuln/detail/cve-2021-44228), additional CVEs ([1](https://nvd.nist.gov/vuln/detail/cve-2021-45046), [2](https://nvd.nist.gov/vuln/detail/cve-2021-45105)) were reported as the community probed the original fix.
41+
42+
Additional disclosures can be frustrating, but they are generally a sign of a healthy response cycle.
43+
44+
</Note>
45+
46+
Further details of these vulnerabilities will be provided after the rollout of the fixes are complete.
47+
48+
## Immediate Action Required {/*immediate-action-required*/}
49+
50+
These vulnerabilities are present in the same packages and versions as [CVE-2025-55182](http://localhost:3000/blog/2025/12/03/critical-security-vulnerability-in-react-server-components).
51+
52+
This includes versions 19.0.0, 19.0.1 19.1.0, 19.1.1, 19.1.2, 19.2.0 and 19.2.1 of:
53+
54+
* [react-server-dom-webpack](https://www.npmjs.com/package/react-server-dom-webpack)
55+
* [react-server-dom-parcel](https://www.npmjs.com/package/react-server-dom-parcel)
56+
* [react-server-dom-turbopack](https://www.npmjs.com/package/react-server-dom-turbopack?activeTab=readme)
57+
58+
Fixes were backported 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.
59+
60+
As before, if your app’s React code does not use a server, your app is not affected by these vulnerabilities. If your app does not use a framework, bundler, or bundler plugin that supports React Server Components, your app is not affected by these vulnerabilities.
61+
62+
<Note>
63+
64+
#### The patches published last week are vulnerable. {/*the-patches-published-last-week-are-vulnerable*/}
65+
66+
If you already updated for the Critical Security Vulnerability, you will need to update again.
67+
68+
</Note>
69+
70+
### Affected frameworks and bundlers {/*affected-frameworks-and-bundlers*/}
71+
72+
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), [@vite/rsc-plugin](https://www.npmjs.com/package/@vitejs/plugin-rsc), and [rwsdk](https://www.npmjs.com/package/rwsdk).
73+
74+
Please see [the instructions in the previous post](https://react.dev/blog/2025/12/03/critical-security-vulnerability-in-react-server-components#update-instructions) for upgrade steps.
75+
76+
### Hosting Provider Mitigations {/*hosting-provider-mitigations*/}
77+
78+
As before, we have worked with a number of hosting providers to apply temporary mitigations.
79+
80+
You should not depend on these to secure your app, and still update immediately.
81+
82+
### React Native {/*react-native*/}
83+
84+
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.
85+
86+
If you are using React Native in a monorepo, you should update _only_ the impacted packages if they are installed:
87+
88+
- `react-server-dom-webpack`
89+
- `react-server-dom-parcel`
90+
- `react-server-dom-turbopack`
91+
92+
This is required to mitigate the security advisories, but you do not need to update `react` and `react-dom` so this will not cause the version mismatch error in React Native.
93+
94+
See [this issue](https://github.com/facebook/react-native/issues/54772#issuecomment-3617929832) for more information.
95+
96+
## High Severity: Denial of Service {/*high-severity-denial-of-service*/}
97+
98+
**CVE:** [CVE-2025-55184](https://www.cve.org/CVERecord?id=CVE-2025-55184)
99+
**Base Score:** 7.5 (High)
100+
101+
Security researchers have discovered that a malicious HTTP request can be crafted and sent to any Server Functions endpoint that, when deserialized by React, can cause an infinite loop that hangs the server process and consumes CPU. Even if your app does not implement any React Server Function endpoints it may still be vulnerable if your app supports React Server Components.
102+
103+
This creates a vulnerability vector where an attacker may be able to deny users from accessing the product, and potentially have a performance impact on the server environment.
104+
105+
The patches published today mitigate by preventing the infinite loop.
106+
107+
108+
## Medium Severity: Source Code Exposure {/*low-severity-source-code-exposure*/}
109+
110+
**CVE:** [CVE-2025-55183](https://www.cve.org/CVERecord?id=CVE-2025-55183)
111+
**Base Score**: 5.3 (Medium)
112+
113+
A security researcher has discovered that a malicious HTTP request sent to a vulnerable Server Function may unsafely return the source code of any Server Function. Exploitation requires the existence of a Server Function which explicitly or implicitly exposes a stringified argument:
114+
115+
```javascript
116+
'use server';
117+
118+
export async function serverFunction(name) {
119+
const conn = db.createConnection('SECRET KEY');
120+
const user = await conn.createUser(name); // implicitly stringified, leaked in db
121+
122+
return {
123+
id: user.id,
124+
message: `Hello, ${name}!` // explicitly stringified, leaked in reply
125+
}}
126+
```
127+
128+
An attacker may be able to leak the following:
129+
130+
```txt
131+
0:{"a":"$@1","f":"","b":"Wy43RxUKdxmr5iuBzJ1pN"}
132+
1:{"id":"tva1sfodwq","message":"Hello, async function(a){console.log(\"serverFunction\");let b=i.createConnection(\"SECRET KEY\");return{id:(await b.createUser(a)).id,message:`Hello, ${a}!`}}!"}
133+
```
134+
135+
The patches published today prevent stringifying the Server Function source code.
136+
137+
<Note>
138+
139+
#### Only secrets in source code may be exposed. {/*only-secrets-in-source-code-may-be-exposed*/}
140+
141+
Secrets hardcoded in source code may be exposed, but runtime secrets such as `process.env.SECRET` are not affected.
142+
143+
The scope of the exposed code is limited to the code inside the Server Function, which may include other functions depending on the amount of inlining your bundler provides.
144+
145+
Always verify against production bundles.
146+
147+
</Note>
148+
149+
---
150+
151+
## Timeline {/*timeline*/}
152+
* **December 3rd**: Leak reported to Vercel and [Meta Bug Bounty](https://bugbounty.meta.com/) by [Andrew MacPherson](https://github.com/AndrewMohawk).
153+
* **December 4th**: Initial DoS reported to [Meta Bug Bounty](https://bugbounty.meta.com/) by [RyotaK](https://ryotak.net).
154+
* **December 6th**: Both issues confirmed by the React team, and the team began investigating.
155+
* **December 7th**: Initial fixes created and the React team began verifying and planning new patch.
156+
* **December 8th**: Affected hosting providers and open source projects notified.
157+
* **December 10th**: Hosting provider mitigations in place and patches verified.
158+
* **December 11th**: Additional DoS reported to [Meta Bug Bounty](https://bugbounty.meta.com/) and added to patch.
159+
* **December 11th**: Patches published and publicly disclosed as [CVE-2025-55183](https://www.cve.org/CVERecord?id=CVE-2025-55183) and [CVE-2025-55184](https://www.cve.org/CVERecord?id=CVE-2025-55184).
160+
161+
---
162+
163+
## Attribution {/*attribution*/}
164+
165+
Thank you to [Andrew MacPherson (AndrewMohawk)](https://github.com/AndrewMohawk) for reporting the Source Code Exposure, [RyotaK](https://ryotak.net) from GMO Flatt Security Inc for reporting the initial Denial of Service vulnerability.

src/content/blog/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ You can also follow the [@react.dev](https://bsky.app/profile/react.dev) account
1212

1313
<div className="sm:-mx-5 flex flex-col gap-5 mt-12">
1414

15+
<BlogCard title="Denial of Service and Source Code Exposure in React Server Components" date="December 11, 2025" url="/blog/2025/12/11/denial-of-service-and-source-code-exposure-in-react-server-components">
16+
17+
Security researchers have found and disclosed two additional vulnerabilities in React Server Components while attempting to exploit the patches in last week’s critical vulnerability...
18+
19+
</BlogCard>
20+
1521
<BlogCard title="Critical Security Vulnerability in React Server Components" date="December 3, 2025" url="/blog/2025/12/03/critical-security-vulnerability-in-react-server-components">
1622

1723
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.

src/content/versions.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,14 @@ For versions older than React 15, see [15.react.dev](https://15.react.dev).
5454
- [React 19 Deep Dive: Coordinating HTML](https://www.youtube.com/watch?v=IBBN-s77YSI)
5555

5656
**Releases**
57+
- [v19.2.1 (December, 2025)](https://github.com/facebook/react/blob/main/CHANGELOG.md#1922-dec-11-2025)
5758
- [v19.2.1 (December, 2025)](https://github.com/facebook/react/blob/main/CHANGELOG.md#1921-dec-3-2025)
5859
- [v19.2.0 (October, 2025)](https://github.com/facebook/react/blob/main/CHANGELOG.md#1920-october-1st-2025)
60+
- [v19.1.3 (December, 2025)](https://github.com/facebook/react/blob/main/CHANGELOG.md#1913-dec-11-2025)
5961
- [v19.1.2 (December, 2025)](https://github.com/facebook/react/blob/main/CHANGELOG.md#1912-dec-3-2025)
6062
- [v19.1.1 (July, 2025)](https://github.com/facebook/react/blob/main/CHANGELOG.md#1911-july-28-2025)
6163
- [v19.1.0 (March, 2025)](https://github.com/facebook/react/blob/main/CHANGELOG.md#1910-march-28-2025)
64+
- [v19.0.2 (December, 2025)](https://github.com/facebook/react/blob/main/CHANGELOG.md#1902-dec-11-2025)
6265
- [v19.0.1 (December, 2025)](https://github.com/facebook/react/blob/main/CHANGELOG.md#1901-dec-3-2025)
6366
- [v19.0.0 (December, 2024)](https://github.com/facebook/react/blob/main/CHANGELOG.md#1900-december-5-2024)
6467

src/sidebarBlog.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,18 @@
1111
"path": "/blog",
1212
"skipBreadcrumb": true,
1313
"routes": [
14+
{
15+
"title": "Denial of Service and Source Code Exposure in React Server Components",
16+
"titleForHomepage": "Additional Vulnerabilities in RSC",
17+
"icon": "blog",
18+
"date": "December 11, 2025",
19+
"path": "/blog/2025/12/11/denial-of-service-and-source-code-exposure-in-react-server-components"
20+
},
1421
{
1522
"title": "Critical Security Vulnerability in React Server Components",
1623
"titleForHomepage": "Vulnerability in React Server Components",
1724
"icon": "blog",
18-
"date": "December 03, 2025",
25+
"date": "December 3, 2025",
1926
"path": "/blog/2025/12/03/critical-security-vulnerability-in-react-server-components"
2027
},
2128
{

0 commit comments

Comments
 (0)