GHSA-5j59-xgg2-r9c4 Next has a Denial of Service with Server Components - Incomplete Fix Follow-Up
Attackers can cause denial of service in Next.js apps by sending crafted requests to Server Function endpoints, triggering infinite loops in React Server Components.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-5j59-xgg2-r9c4?
GHSA-5j59-xgg2-r9c4 is a denial of service vulnerability in next, published on 12 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
It was discovered that the fix for CVE-2025-55184 in React Server Components was incomplete and did not fully mitigate denial-of-service conditions across all payload types. As a result, certain crafted inputs could still trigger excessive resource consumption.
This vulnerability affects React versions 19.0.2, 19.1.3, and 19.2.2, as well as frameworks that bundle or depend on these versions, including Next.js 13.x, 14.x, 15.x, and 16.x when using the App Router. The issue is tracked upstream as CVE-2025-67779.
A malicious actor can send a specially crafted HTTP request to a Server Function endpoint that, when deserialized, causes the React Server Components runtime to enter an infinite loop. This can lead to sustained CPU consumption and cause the affected server process to become unresponsive, resulting in a denial-of-service condition in unpatched environments.
Which versions are affected by GHSA-5j59-xgg2-r9c4?
20 open source packages ship an affected version, including next.
| Package | Affected | Fixed in |
|---|---|---|
next npm | From 13.3.1-canary.0 | 14.2.35 |
next npm | From 13.3.1-canary.0 | 14.2.35 |
next npm | From 15.0.6 | 15.0.7 |
next npm | From 15.0.6 | 15.0.7 |
next npm | From 15.1.10 | 15.1.11 |
next npm | From 15.1.10 | 15.1.11 |
14 more packages
next npm | From 15.2.7 | 15.2.8 |
next npm | From 15.2.7 | 15.2.8 |
next npm | From 15.3.7 | 15.3.8 |
next npm | From 15.3.7 | 15.3.8 |
next npm | From 15.4.9 | 15.4.10 |
next npm | From 15.4.9 | 15.4.10 |
next npm | From 15.5.8 | 15.5.9 |
next npm | From 15.5.8 | 15.5.9 |
next npm | From 15.6.0-canary.59 | 15.6.0-canary.60 |
next npm | From 15.6.0-canary.59 | 15.6.0-canary.60 |
next npm | From 16.0.9 | 16.0.10 |
next npm | From 16.0.9 | 16.0.10 |
next npm | From 16.1.0-canary.17 | 16.1.0-canary.19 |
next npm | From 16.1.0-canary.17 | 16.1.0-canary.19 |
How do I fix GHSA-5j59-xgg2-r9c4?
Upgrade next to a fixed version for your release line: 14.2.35, 15.0.7, 15.1.11 or 15.2.8.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is GHSA-5j59-xgg2-r9c4 being exploited?
There is no known exploitation of GHSA-5j59-xgg2-r9c4 in the wild and no public exploit code.