Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:npm/next@15.4.11
purl pkg:npm/next@15.4.11
Next non-vulnerable version 15.5.14
Latest non-vulnerable version 16.2.3
Risk 3.1
Vulnerabilities affecting this package (4)
Vulnerability Summary Fixed by
VCID-3m4d-v2y1-5ua4
Aliases:
CVE-2025-59472
GHSA-5f7q-jpqc-wp7h
Next.js has Unbounded Memory Consumption via PPR Resume Endpoint 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, an application must run 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.
15.5.1
Affected by 8 other vulnerabilities.
15.6.0-canary.61
Affected by 1 other vulnerability.
16.1.5
Affected by 5 other vulnerabilities.
VCID-5kj1-stm6-8qgv
Aliases:
CVE-2026-29057
GHSA-ggv3-7p47-pfv8
Next.js: HTTP request smuggling in rewrites ## Summary When Next.js rewrites proxy traffic to an external backend, a crafted `DELETE`/`OPTIONS` request using `Transfer-Encoding: chunked` could trigger request boundary disagreement between the proxy and backend. This could allow request smuggling through rewritten routes. ## Impact An attacker could smuggle a second request to unintended backend routes (for example, internal/admin endpoints), bypassing assumptions that only the configured rewrite destination/path is reachable. This does not impact applications hosted on providers that handle rewrites at the CDN level, such as Vercel. ## Patches The vulnerability originated in an upstream library vendored by Next.js. It is fixed by updating that dependency’s behavior so `content-length: 0` is added only when both `content-length` and `transfer-encoding` are absent, and `transfer-encoding` is no longer removed in that code path. ## Workarounds If upgrade is not immediately possible: - Block chunked `DELETE`/`OPTIONS` requests on rewritten routes at your edge/proxy. - Enforce authentication/authorization on backend routes per our [security guidance](https://nextjs.org/docs/app/guides/data-security).
15.5.13
Affected by 1 other vulnerability.
16.1.7
Affected by 0 other vulnerabilities.
VCID-qz2s-22e2-ufg9
Aliases:
CVE-2026-27980
GHSA-3x4c-7xq6-9pq8
Next.js: Unbounded next/image disk cache growth can exhaust storage ## Summary The default Next.js image optimization disk cache (`/_next/image`) did not have a configurable upper bound, allowing unbounded cache growth. ## Impact An attacker could generate many unique image-optimization variants and exhaust disk space, causing denial of service. Note that this does not impact platforms that have their own image optimization capabilities, such as Vercel. ## Patches Fixed by adding an LRU-backed disk cache with `images.maximumDiskCacheSize`, including eviction of least-recently-used entries when the limit is exceeded. Setting `maximumDiskCacheSize: 0` disables disk caching. ## Workarounds If upgrade is not immediately possible: - Periodically clean `.next/cache/images`. - Reduce variant cardinality (e.g., tighten values for `images.localPatterns`, `images.remotePatterns`, and `images.qualities`)
15.5.14
Affected by 0 other vulnerabilities.
15.6.0-canary.0
Affected by 5 other vulnerabilities.
16.1.7
Affected by 0 other vulnerabilities.
VCID-xv6q-hbf8-b7b1
Aliases:
CVE-2025-59471
GHSA-9g9p-9gw9-jx7f
Next.js self-hosted applications vulnerable to DoS via Image Optimizer remotePatterns configuration A DoS vulnerability exists in self-hosted Next.js applications that have `remotePatterns` configured for the Image Optimizer. The image optimization endpoint (`/_next/image`) loads external images entirely into memory without enforcing a maximum size limit, allowing an attacker to cause out-of-memory conditions by requesting optimization of arbitrarily large images. This vulnerability requires that `remotePatterns` is configured to allow image optimization from external domains and that the attacker can serve or control a large image on an allowed domain. Strongly consider upgrading to 15.5.10 and 16.1.5 to reduce risk and prevent availability issues in Next applications.
15.5.10
Affected by 3 other vulnerabilities.
16.1.5
Affected by 5 other vulnerabilities.
Vulnerabilities fixed by this package (1)
Vulnerability Summary Aliases
VCID-w35n-bwuy-5kce Next.js HTTP request deserialization can lead to DoS when using insecure React Server Components A vulnerability affects certain React Server Components packages for versions 19.0.x, 19.1.x, and 19.2.x and frameworks that use the affected packages, including Next.js 13.x, 14.x, 15.x, and 16.x using the App Router. The issue is tracked upstream as [CVE-2026-23864](https://github.com/facebook/react/security/advisories/GHSA-83fc-fqcc-2hmg). A specially crafted HTTP request can be sent to any App Router Server Function endpoint that, when deserialized, may trigger excessive CPU usage, out-of-memory exceptions, or server crashes. This can result in denial of service in unpatched environments. GHSA-h25m-26qc-wcjf

Date Actor Action Vulnerability Source VulnerableCode Version
2026-04-19T18:06:55.790011+00:00 GitLab Importer Affected by VCID-5kj1-stm6-8qgv https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2026-29057.yml 38.4.0
2026-04-19T18:06:16.086836+00:00 GitLab Importer Affected by VCID-qz2s-22e2-ufg9 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2026-27980.yml 38.4.0
2026-04-17T00:13:26.213489+00:00 GitLab Importer Affected by VCID-3m4d-v2y1-5ua4 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2025-59472.yml 38.4.0
2026-04-17T00:13:16.755393+00:00 GitLab Importer Fixing VCID-w35n-bwuy-5kce https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/GHSA-h25m-26qc-wcjf.yml 38.4.0
2026-04-17T00:12:53.291710+00:00 GitLab Importer Affected by VCID-xv6q-hbf8-b7b1 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2025-59471.yml 38.4.0
2026-04-12T01:37:20.081200+00:00 GitLab Importer Affected by VCID-3m4d-v2y1-5ua4 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2025-59472.yml 38.3.0
2026-04-12T01:37:09.953591+00:00 GitLab Importer Fixing VCID-w35n-bwuy-5kce https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/GHSA-h25m-26qc-wcjf.yml 38.3.0
2026-04-12T01:36:44.668000+00:00 GitLab Importer Affected by VCID-xv6q-hbf8-b7b1 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2025-59471.yml 38.3.0
2026-04-03T01:46:16.653888+00:00 GitLab Importer Affected by VCID-3m4d-v2y1-5ua4 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2025-59472.yml 38.1.0
2026-04-03T01:46:11.425254+00:00 GitLab Importer Fixing VCID-w35n-bwuy-5kce https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/GHSA-h25m-26qc-wcjf.yml 38.1.0
2026-04-03T01:45:46.105032+00:00 GitLab Importer Affected by VCID-xv6q-hbf8-b7b1 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2025-59471.yml 38.1.0
2026-04-01T16:07:50.804383+00:00 GHSA Importer Fixing VCID-w35n-bwuy-5kce https://github.com/advisories/GHSA-h25m-26qc-wcjf 38.0.0
2026-04-01T12:53:44.827590+00:00 GitLab Importer Fixing VCID-w35n-bwuy-5kce https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/GHSA-h25m-26qc-wcjf.yml 38.0.0
2026-04-01T12:52:14.282992+00:00 GithubOSV Importer Fixing VCID-w35n-bwuy-5kce https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/01/GHSA-h25m-26qc-wcjf/GHSA-h25m-26qc-wcjf.json 38.0.0