CVE-2025-59472
MediumCVSS 5.9Exploitation Probability (EPSS)
Low risk39th percentile - higher than 39% of all known CVEs
Summary
A denial of service vulnerability exists in Next.js with Partial Prerendering (PPR) enabled in minimal mode. The PPR resume endpoint accepts unauthenticated POST requests with the `Next-Resume: 1` header and processes attacker-controlled postponed state data, which can cause memory exhaustion and termination of the Node.js process. The two attack vectors are unbounded request body buffering and unbounded decompression (zipbomb).
Risk Assessment
An unauthenticated remote attacker can crash the server process and cause application unavailability. The zipbomb variant can bypass reverse proxy request size limits, increasing the risk.
Recommendation
Upgrade Next.js to version 15.6.0-canary.61 or 16.1.5. If upgrading is not possible, consider disabling PPR or restricting access to the resume endpoint.
Other vulnerabilities in Next.js
See all- CVE-2026-75604Critical
Next.js, a React framework for full-stack applications, versions 13.4.0 through 15.5.24 and 16.3.3, on Windows-hosted servers does not properly escape backslashes in route segments when constructing cache paths, allowing a remote attacker to traverse outside the cache root and expose private data, including the server-reference-manifest encryption key. Disclosure of this key can enable remote code execution. Fixed in versions 15.5.24 and 16.3.3.
- CVE-2026-44578High
Next.js versions from 13.4.13 to before 15.5.16 and 16.2.5 are vulnerable to server-side request forgery (SSRF) via crafted WebSocket upgrade requests. An attacker can force the server to proxy requests to arbitrary internal or external destinations, potentially exposing internal services or cloud metadata endpoints.
- CVE-2025-29927Critical
Next.js allows bypassing authorization checks if they are performed in middleware. The vulnerability affects versions from 1.11.4 prior to 12.3.5, 13.5.9, 14.2.25, and 15.2.3.
- CVE-2017-16877High
Next.js before 2.4.1 has a directory traversal vulnerability in the /_next and /static request namespace, allowing attackers to obtain sensitive information.
- GHSA-673q-mjm6-r5xrCritical
A vulnerability in applications using the App router with the Cache Component can lead to remote code execution. The application must have a `use cache` function that returns multiple typed arrays.
- CVE-2026-119790Medium
Next.js versions 16.3.0 through 16.4.5 have a vulnerability where cached data can be disclosed across root param values during a race condition on the first cache fill after a cold start. This requires using the same 'use cache' function directly during rendering and through unstable_cache().
- CVE-2026-119351Medium
Next.js versions 16.2.0 through 16.4.5 with Cache Components enabled can reuse an outer 'use cache' entry across root param values when a nested 'use cache' call reads a root param via next/root-params and returns a value containing pending promises. This can lead to data leakage and ignoring cache tag invalidation.
- CVE-2026-119350Medium
Next.js versions 16.4.0 through 16.4.5, in self-hosted applications served with next start, allow an unauthenticated request to poison a shared fallback shell when cacheComponents is true and partialPrefetching is unset or false. This requires specific dynamic route configuration and can lead to persistent 404 or substituted param text.
- CVE-2026-119349Medium
Next.js versions 16.0.0 through 16.4.5, in App Router applications passing binary arguments (e.g., Uint8Array or Blob) to functions using the 'use cache' directive, can generate identical cache keys for distinct arguments. This can lead to sharing cached results across users.
- CVE-2026-119348Medium
Next.js prior to versions 15.5.29 and 16.4.5, in self-hosted App Router route handlers and fetch cache returning an unchanged upstream response, can emit a response whose declared framing does not match the actual body. When behind an HTTP/1.1 reverse proxy, this allows response desynchronization between clients.
Original NVD description (English source)
A denial of service vulnerability exists in Next.js versions with Partial Prerendering (PPR) enabled when running in minimal mode. The PPR resume endpoint accepts unauthenticated POST requests with the `Next-Resume: 1` header and processes attacker-controlled postponed state data. Two closely related vulnerabilities allow an attacker to crash the server process through memory exhaustion: 1. **Unbounded request body buffering**: The server buffers the entire POST request body into memory using `Buffer.concat()` without enforcing any size limit, allowing arbitrarily large payloads to exhaust available memory. 2. **Unbounded decompression (zipbomb)**: The resume data cache is decompressed using `inflateSync()` without limiting the decompressed output size. A small compressed payload can expand to hundreds of megabytes or gigabytes, causing memory exhaustion. Both attack vectors result in a fatal V8 out-of-memory error (`FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory`) causing the Node.js process to terminate. The zipbomb variant is particularly dangerous as it can bypass reverse proxy request size limits while still causing large memory allocation on the server. To be affected you must have an application running with `experimental.ppr: true` or `cacheComponents: true` configured along with the NEXT_PRIVATE_MINIMAL_MODE=1 environment variable. Strongly consider upgrading to 15.6.0-canary.61 or 16.1.5 to reduce risk and prevent availability issues in Next applications.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

