Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:npm/next@4.2.0-zones.2
purl pkg:npm/next@4.2.0-zones.2
Next non-vulnerable version 15.5.14
Latest non-vulnerable version 16.2.3
Risk 10.0
Vulnerabilities affecting this package (8)
Vulnerability Summary Fixed by
VCID-321e-gyty-sfdp
Aliases:
CVE-2018-6184
GHSA-m34x-wgrh-g897
Path Traversal Next.js has Directory Traversal in the `/_next` request namespace.
4.2.3
Affected by 7 other vulnerabilities.
VCID-54qu-9bx2-9ka8
Aliases:
CVE-2025-57822
GHSA-4342-x723-ch2f
Next.js Improper Middleware Redirect Handling Leads to SSRF A vulnerability in **Next.js Middleware** has been fixed in **v14.2.32** and **v15.4.7**. The issue occurred when request headers were directly passed into `NextResponse.next()`. In self-hosted applications, this could allow Server-Side Request Forgery (SSRF) if certain sensitive headers from the incoming request were reflected back into the response. All users implementing custom middleware logic in self-hosted environments are strongly encouraged to upgrade and verify correct usage of the `next()` function. More details at [Vercel Changelog](https://vercel.com/changelog/cve-2025-57822)
14.2.32
Affected by 6 other vulnerabilities.
15.4.7
Affected by 8 other vulnerabilities.
VCID-kz7q-razc-pyf2
Aliases:
GHSA-5vj8-3v2h-h38v
GMS-2020-750
Remote Code Execution in next Versions of `next` prior to 5.1.0 are vulnerable to Remote Code Execution. The `/path:` route fails to properly sanitize input and passes it to a `require()` call. This allows attackers to execute JavaScript code on the server. Note that prior version 0.9.9 package `next` npm package hosted a different utility (0.4.1 being the latest version of that codebase), and this advisory does not apply to those versions. ## Recommendation Upgrade to version 5.1.0.
5.1.0
Affected by 6 other vulnerabilities.
VCID-r4pw-m8mz-xbdq
Aliases:
CVE-2025-57752
GHSA-g5qg-72qw-gw5v
Next.js Affected by Cache Key Confusion for Image Optimization API Routes A vulnerability in Next.js Image Optimization has been fixed in v15.4.5 and v14.2.31. 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. All users are encouraged to upgrade if they use API routes to serve images that depend on request headers and have image optimization enabled. More details at [Vercel Changelog](https://vercel.com/changelog/cve-2025-57752)
14.2.31
Affected by 7 other vulnerabilities.
15.4.5
Affected by 9 other vulnerabilities.
VCID-rx4e-7jj2-9udg
Aliases:
CVE-2023-46298
GHSA-c59h-r6p8-q9wc
Next.js missing cache-control header may lead to CDN caching empty reply 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 19 other vulnerabilities.
13.4.20-canary.13
Affected by 19 other vulnerabilities.
13.5.0
Affected by 17 other vulnerabilities.
VCID-sjdx-v2z6-3fcw
Aliases:
CVE-2025-55173
GHSA-xv57-4mr9-wg8v
Next.js Content Injection Vulnerability for Image Optimization A vulnerability in **Next.js Image Optimization** has been fixed in **v15.4.5** and **v14.2.31**. 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. All users relying on `images.domains` or `images.remotePatterns` are encouraged to upgrade and verify that external image sources are strictly validated. More details at [Vercel Changelog](https://vercel.com/changelog/cve-2025-55173)
14.2.31
Affected by 7 other vulnerabilities.
15.4.5
Affected by 9 other vulnerabilities.
VCID-vwym-qr5h-fue8
Aliases:
CVE-2025-32421
GHSA-qpjv-v59x-3qc4
Next.js Race Condition to Cache Poisoning **Summary** We received a responsible disclosure from Allam Rachid (zhero) for a low-severity race-condition vulnerability in Next.js. This issue only affects the **Pages Router** under certain misconfigurations, causing normal endpoints to serve `pageProps` data instead of standard HTML. [Learn more here](https://vercel.com/changelog/cve-2025-32421) **Credit** Thank you to **Allam Rachid (zhero)** for the responsible disclosure. This research was rewarded as part of our bug bounty program.
14.2.24
Affected by 11 other vulnerabilities.
15.1.6
Affected by 14 other vulnerabilities.
VCID-x7z9-16hk-fqbs
Aliases:
CVE-2020-5284
GHSA-fq77-7p7r-83rj
Directory Traversal in Next.js ### Impact - **Not affected**: Deployments on ZEIT Now v2 ([https://zeit.co](https://zeit.co/)) are not affected - **Not affected**: Deployments using the `serverless` target - **Not affected**: Deployments using `next export` - **Affected**: Users of Next.js below 9.3.2 We recommend everyone to upgrade regardless of whether you can reproduce the issue or not. ### Patches https://github.com/zeit/next.js/releases/tag/v9.3.2 ### References https://github.com/zeit/next.js/releases/tag/v9.3.2
9.3.2
Affected by 5 other vulnerabilities.
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-04-16T23:39:32.629991+00:00 GitLab Importer Affected by VCID-54qu-9bx2-9ka8 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2025-57822.yml 38.4.0
2026-04-16T23:39:20.405503+00:00 GitLab Importer Affected by VCID-sjdx-v2z6-3fcw https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2025-55173.yml 38.4.0
2026-04-16T23:39:03.242365+00:00 GitLab Importer Affected by VCID-r4pw-m8mz-xbdq https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2025-57752.yml 38.4.0
2026-04-16T23:28:48.343040+00:00 GitLab Importer Affected by VCID-vwym-qr5h-fue8 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2025-32421.yml 38.4.0
2026-04-16T22:41:29.373219+00:00 GitLab Importer Affected by VCID-rx4e-7jj2-9udg https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2023-46298.yml 38.4.0
2026-04-16T21:10:59.529015+00:00 GitLab Importer Affected by VCID-kz7q-razc-pyf2 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/GMS-2020-750.yml 38.4.0
2026-04-16T21:02:05.241797+00:00 GitLab Importer Affected by VCID-x7z9-16hk-fqbs https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2020-5284.yml 38.4.0
2026-04-16T01:20:27.252116+00:00 GHSA Importer Affected by VCID-321e-gyty-sfdp https://github.com/advisories/GHSA-m34x-wgrh-g897 38.4.0
2026-04-12T01:00:15.226659+00:00 GitLab Importer Affected by VCID-54qu-9bx2-9ka8 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2025-57822.yml 38.3.0
2026-04-12T01:00:00.834187+00:00 GitLab Importer Affected by VCID-sjdx-v2z6-3fcw https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2025-55173.yml 38.3.0
2026-04-12T00:59:41.557452+00:00 GitLab Importer Affected by VCID-r4pw-m8mz-xbdq https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2025-57752.yml 38.3.0
2026-04-12T00:48:26.450888+00:00 GitLab Importer Affected by VCID-vwym-qr5h-fue8 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2025-32421.yml 38.3.0
2026-04-12T00:01:00.732236+00:00 GitLab Importer Affected by VCID-rx4e-7jj2-9udg https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2023-46298.yml 38.3.0
2026-04-11T22:22:49.596465+00:00 GitLab Importer Affected by VCID-kz7q-razc-pyf2 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/GMS-2020-750.yml 38.3.0
2026-04-11T22:13:24.662680+00:00 GitLab Importer Affected by VCID-x7z9-16hk-fqbs https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2020-5284.yml 38.3.0
2026-04-11T12:48:39.540282+00:00 GHSA Importer Affected by VCID-321e-gyty-sfdp https://github.com/advisories/GHSA-m34x-wgrh-g897 38.3.0
2026-04-03T01:08:27.050793+00:00 GitLab Importer Affected by VCID-54qu-9bx2-9ka8 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2025-57822.yml 38.1.0
2026-04-03T01:08:13.029245+00:00 GitLab Importer Affected by VCID-sjdx-v2z6-3fcw https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2025-55173.yml 38.1.0
2026-04-03T01:07:54.395349+00:00 GitLab Importer Affected by VCID-r4pw-m8mz-xbdq https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2025-57752.yml 38.1.0
2026-04-03T00:56:27.176305+00:00 GitLab Importer Affected by VCID-vwym-qr5h-fue8 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2025-32421.yml 38.1.0
2026-04-03T00:04:03.042384+00:00 GitLab Importer Affected by VCID-rx4e-7jj2-9udg https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2023-46298.yml 38.1.0
2026-04-02T22:34:51.784573+00:00 GitLab Importer Affected by VCID-kz7q-razc-pyf2 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/GMS-2020-750.yml 38.1.0
2026-04-02T22:25:46.036783+00:00 GitLab Importer Affected by VCID-x7z9-16hk-fqbs https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2020-5284.yml 38.1.0
2026-04-02T13:43:21.728503+00:00 GHSA Importer Affected by VCID-321e-gyty-sfdp https://github.com/advisories/GHSA-m34x-wgrh-g897 38.1.0
2026-04-01T16:43:42.135302+00:00 GitLab Importer Affected by VCID-x7z9-16hk-fqbs https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/next/CVE-2020-5284.yml 38.0.0