Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:npm/next@12.2.0
purl pkg:npm/next@12.2.0
Next non-vulnerable version 15.5.18
Latest non-vulnerable version 16.2.6
Risk 10.0
Vulnerabilities affecting this package (14)
Vulnerability Summary Fixed by
VCID-29qk-jgck-2kb2
Aliases:
CVE-2025-59471
GHSA-9g9p-9gw9-jx7f
A denial of service 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 or 16.1.5 to reduce risk and prevent availability issues in Next applications.
15.5.10
Affected by 16 other vulnerabilities.
16.1.5
Affected by 19 other vulnerabilities.
VCID-2wxy-d9mx-u7du
Aliases:
CVE-2026-44573
GHSA-36qx-fr4f-26g5
Next.js is a React framework for building full-stack web applications. From 12.2.0 to before 15.5.16 and 16.2.5, Applications using the Pages Router with i18n configured and middleware/proxy-based authorization can allow unauthorized access to protected page data through locale-less /_next/data/<buildId>/<page>.json requests. In affected configurations, middleware does not run for the unprefixed data route, allowing an attacker to retrieve SSR JSON for protected pages without passing the intended authorization checks. This vulnerability is fixed in 15.5.16 and 16.2.5.
15.5.16
Affected by 1 other vulnerability.
16.2.5
Affected by 1 other vulnerability.
VCID-3614-49nb-r7em
Aliases:
CVE-2024-47831
GHSA-g77x-44xx-532m
Next.js is a React Framework for the Web. Cersions on the 10.x, 11.x, 12.x, 13.x, and 14.x branches before version 14.2.7 contain a vulnerability in the image optimization feature which allows for a potential Denial of Service (DoS) condition which could lead to excessive CPU consumption. Neither the `next.config.js` file that is configured with `images.unoptimized` set to `true` or `images.loader` set to a non-default value nor the Next.js application that is hosted on Vercel are affected. This issue was fully patched in Next.js `14.2.7`. As a workaround, ensure that the `next.config.js` file has either `images.unoptimized`, `images.loader` or `images.loaderFile` assigned.
14.2.7
Affected by 25 other vulnerabilities.
VCID-93c9-up9w-5fdv
Aliases:
CVE-2026-44577
GHSA-h64f-5h5j-jqjh
Next.js is a React framework for building full-stack web applications. From 10.0.0 to before 15.5.16 and 16.2.5, when self-hosting Next.js with the default image loader, the Image Optimization API fetches local images entirely into memory without enforcing a maximum size limit. An attacker could cause out-of-memory conditions by requesting large local assets from the /_next/image endpoint that match the images.localPatterns configuration (by default, all patterns are allowed). This vulnerability is fixed in 15.5.16 and 16.2.5.
15.5.16
Affected by 1 other vulnerability.
16.2.5
Affected by 1 other vulnerability.
VCID-bjvd-79eg-17f3
Aliases:
CVE-2026-29057
GHSA-ggv3-7p47-pfv8
Next.js is a React framework for building full-stack web applications. Starting in version 9.5.0 and prior to versions 15.5.13 and 16.1.7, 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. 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. The vulnerability originated in an upstream library vendored by Next.js. It is fixed in Next.js 15.5.13 and 16.1.7 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. If upgrading is not immediately possible, block chunked `DELETE`/`OPTIONS` requests on rewritten routes at the edge/proxy, and/or enforce authentication/authorization on backend routes.
15.5.13
Affected by 15 other vulnerabilities.
16.1.7
Affected by 14 other vulnerabilities.
VCID-k79u-6118-zyag
Aliases:
CVE-2023-46298
GHSA-c59h-r6p8-q9wc
Next.js before 13.4.20-canary.13 lacks a cache-control header and thus empty prefetch responses may sometimes be cached by a CDN, causing a denial of service to all users requesting the same URL via that CDN.
13.4.20-canary.0
Affected by 28 other vulnerabilities.
13.4.20-canary.13
Affected by 28 other vulnerabilities.
13.5.0
Affected by 26 other vulnerabilities.
VCID-p7a7-ehjr-xqf3
Aliases:
CVE-2025-57752
GHSA-g5qg-72qw-gw5v
Next.js is a React framework for building full-stack web applications. In versions before 14.2.31 and from 15.0.0 to before 15.4.5, Next.js Image Optimization API routes are affected by cache key confusion. When images returned from API routes vary based on request headers (such as Cookie or Authorization), these responses could be incorrectly cached and served to unauthorized users due to a cache key confusion bug. This vulnerability has been fixed in Next.js versions 14.2.31 and 15.4.5. All users are encouraged to upgrade if they use API routes to serve images that depend on request headers and have image optimization enabled.
14.2.31
Affected by 17 other vulnerabilities.
15.4.5
Affected by 22 other vulnerabilities.
VCID-pzbj-fkbg-nkdw
Aliases:
CVE-2024-51479
GHSA-7gfc-8cq8-jh5f
Next.js is a React framework for building full-stack web applications. In affected versions if a Next.js application is performing authorization in middleware based on pathname, it was possible for this authorization to be bypassed for pages directly under the application's root directory. For example: * [Not affected] `https://example.com/` * [Affected] `https://example.com/foo` * [Not affected] `https://example.com/foo/bar`. This issue is patched in Next.js `14.2.15` and later. If your Next.js application is hosted on Vercel, this vulnerability has been automatically mitigated, regardless of Next.js version. There are no official workarounds for this vulnerability.
14.2.15
Affected by 23 other vulnerabilities.
VCID-s5uv-nxf7-rkbj
Aliases:
CVE-2025-29927
GHSA-f82v-jwr5-mffw
Next.js is a React framework for building full-stack web applications. Starting in version 1.11.4 and prior to versions 12.3.5, 13.5.9, 14.2.25, and 15.2.3, it is possible to bypass authorization checks within a Next.js application, if the authorization check occurs in middleware. If patching to a safe version is infeasible, it is recommend that you prevent external user requests which contain the x-middleware-subrequest header from reaching your Next.js application. This vulnerability is fixed in 12.3.5, 13.5.9, 14.2.25, and 15.2.3.
12.3.5
Affected by 11 other vulnerabilities.
13.5.9
Affected by 21 other vulnerabilities.
14.2.25
Affected by 21 other vulnerabilities.
15.2.3
Affected by 24 other vulnerabilities.
VCID-t6n1-e9kc-hqgx
Aliases:
CVE-2025-57822
GHSA-4342-x723-ch2f
Next.js is a React framework for building full-stack web applications. Prior to versions 14.2.32 and 15.4.7, when next() was used without explicitly passing the request object, it could lead to SSRF in self-hosted applications that incorrectly forwarded user-supplied headers. This vulnerability has been fixed in Next.js versions 14.2.32 and 15.4.7. All users implementing custom middleware logic in self-hosted environments are strongly encouraged to upgrade and verify correct usage of the next() function.
14.2.32
Affected by 16 other vulnerabilities.
15.4.7
Affected by 21 other vulnerabilities.
VCID-uqrk-gg9y-5bfz
Aliases:
CVE-2026-27980
GHSA-3x4c-7xq6-9pq8
Next.js is a React framework for building full-stack web applications. Starting in version 10.0.0 and prior to version 16.1.7, the default Next.js image optimization disk cache (`/_next/image`) did not have a configurable upper bound, allowing unbounded cache growth. An attacker could generate many unique image-optimization variants and exhaust disk space, causing denial of service. This is fixed in version 16.1.7 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. If upgrading is not immediately possible, periodically clean `.next/cache/images` and/or reduce variant cardinality (e.g., tighten values for `images.localPatterns`, `images.remotePatterns`, and `images.qualities`).
15.5.14
Affected by 14 other vulnerabilities.
15.6.0-canary.0
Affected by 5 other vulnerabilities.
16.1.7
Affected by 14 other vulnerabilities.
VCID-wdsq-y8uf-2feh
Aliases:
CVE-2025-55173
GHSA-xv57-4mr9-wg8v
Next.js is a React framework for building full-stack web applications. In versions before 14.2.31 and from 15.0.0 to before 15.4.5, Next.js Image Optimization is vulnerable to content injection. The issue allowed attacker-controlled external image sources to trigger file downloads with arbitrary content and filenames under specific configurations. This behavior could be abused for phishing or malicious file delivery. This vulnerability has been fixed in Next.js versions 14.2.31 and 15.4.5.
14.2.31
Affected by 17 other vulnerabilities.
15.4.5
Affected by 22 other vulnerabilities.
VCID-xz2s-8drg-8bam
Aliases:
CVE-2025-32421
GHSA-qpjv-v59x-3qc4
Next.js is a React framework for building full-stack web applications. Versions prior to 14.2.24 and 15.1.6 have a race-condition vulnerability. This issue only affects the Pages Router under certain misconfigurations, causing normal endpoints to serve `pageProps` data instead of standard HTML. This issue was patched in versions 15.1.6 and 14.2.24 by stripping the `x-now-route-matches` header from incoming requests. Applications hosted on Vercel's platform are not affected by this issue, as the platform does not cache responses based solely on `200 OK` status without explicit `cache-control` headers. Those who self-host Next.js deployments and are unable to upgrade immediately can mitigate this vulnerability by stripping the `x-now-route-matches` header from all incoming requests at the content development network and setting `cache-control: no-store` for all responses under risk. The maintainers of Next.js strongly recommend only caching responses with explicit cache-control headers.
14.2.24
Affected by 21 other vulnerabilities.
15.1.6
Affected by 24 other vulnerabilities.
VCID-xzrf-tsxp-hqeg
Aliases:
CVE-2026-44572
GHSA-3g8h-86w9-wvmq
Next.js is a React framework for building full-stack web applications. From 12.2.0 to before 15.5.16 and 16.2.5, an external client could send a x-nextjs-data header on a normal request to a path handled by middleware that returns a redirect. When that happened, the middleware/proxy could treat the request as a data request and replace the standard Location redirect header with the internal x-nextjs-redirect header. Browsers do not follow x-nextjs-redirect, so the response became an unusable redirect for normal clients. If the application was deployed behind a CDN or reverse proxy that caches 3xx responses without varying on this header, a single attacker request could poison the cached redirect response for the affected path. Subsequent visitors could then receive a cached redirect response without a Location header, causing a denial of service for that redirect path until the cache entry expired or was purged. This vulnerability is fixed in 15.5.16 and 16.2.5.
15.5.16
Affected by 1 other vulnerability.
16.2.5
Affected by 1 other vulnerability.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-13T06:30:11.054965+00:00 GHSA Importer Affected by VCID-xzrf-tsxp-hqeg https://github.com/advisories/GHSA-3g8h-86w9-wvmq 38.6.0
2026-06-13T06:30:10.159149+00:00 GHSA Importer Affected by VCID-2wxy-d9mx-u7du https://github.com/advisories/GHSA-36qx-fr4f-26g5 38.6.0
2026-06-12T22:27:17.775706+00:00 GitLab Importer Affected by VCID-xzrf-tsxp-hqeg https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2026-44572.yml 38.6.0
2026-06-12T22:26:32.158955+00:00 GitLab Importer Affected by VCID-93c9-up9w-5fdv https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2026-44577.yml 38.6.0
2026-06-12T22:25:54.780319+00:00 GitLab Importer Affected by VCID-2wxy-d9mx-u7du https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2026-44573.yml 38.6.0
2026-06-12T21:31:13.594986+00:00 GitLab Importer Affected by VCID-bjvd-79eg-17f3 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2026-29057.yml 38.6.0
2026-06-12T21:30:32.626934+00:00 GitLab Importer Affected by VCID-uqrk-gg9y-5bfz https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2026-27980.yml 38.6.0
2026-06-12T20:52:28.670302+00:00 GitLab Importer Affected by VCID-29qk-jgck-2kb2 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2025-59471.yml 38.6.0
2026-06-12T20:14:56.510297+00:00 GitLab Importer Affected by VCID-t6n1-e9kc-hqgx https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2025-57822.yml 38.6.0
2026-06-12T20:14:47.883889+00:00 GitLab Importer Affected by VCID-wdsq-y8uf-2feh https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2025-55173.yml 38.6.0
2026-06-12T20:14:32.193283+00:00 GitLab Importer Affected by VCID-p7a7-ehjr-xqf3 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2025-57752.yml 38.6.0
2026-06-12T20:01:43.419803+00:00 GitLab Importer Affected by VCID-xz2s-8drg-8bam https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2025-32421.yml 38.6.0
2026-06-12T19:56:52.435090+00:00 GitLab Importer Affected by VCID-s5uv-nxf7-rkbj https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2025-29927.yml 38.6.0
2026-06-12T19:48:21.958154+00:00 GitLab Importer Affected by VCID-pzbj-fkbg-nkdw https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2024-51479.yml 38.6.0
2026-06-12T19:43:40.311163+00:00 GitLab Importer Affected by VCID-3614-49nb-r7em https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2024-47831.yml 38.6.0
2026-06-12T19:09:17.811146+00:00 GitLab Importer Affected by VCID-k79u-6118-zyag https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2023-46298.yml 38.6.0