Next.js vulnerabilities

Web frameworks · sources: CVE.org/NVD + GitHub/OSV (npm) · refreshes every minute

Historical data is still loading (NVD, last 30 days): counts will keep growing over the next hours. See source status.

Period
Updating…

In the last 30 days, 7 Next.js vulnerabilities were published: 0 critical, 0 actively exploited. Most common weakness: CWE-362.

7vulnerabilities in 30 days
0critical
0exploited
Nov 19last published
CVSS score: 6.9 Severity: Medium Identifier: CVE-2026-119347GHSA-7QX7-33QX-RQX2 Next.js: SVG rejection bypass in the image optimization Package: next fixed in 15.5.29 Published Published

On self-hosted deployments, the Next.js image optimizer (/_next/image) can be made to process an attacker-supplied SVG even when SVG support is disabled with dangerouslyAllowSVG: false (the default). This reaches an SVG parser the application intended to keep disabled, increasing exposure to denial of service and SVG decoder vulnerabilities.

Exploitation
No known exploitation
EPSS
0.58% chance of exploitation in the next 30 days, higher than 41.4% of CVEs
CVSS
6.9 out of 10 · source GitHub
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Versions
>= 15.0.0, <= 15.5.28 · fixed in 15.5.29
Weakness
CWE-1287
Linked via
ecosystem package
Sources
GitHub
Dates
published Nov 19, 2026 · first seen here 5 min ago
CVSS score: 6.3 Severity: Medium Identifier: CVE-2026-119348GHSA-PC58-HWJQ-P385 Next.js: Cross-client response injection and disclosure in self-hosted Next.js applications forwarding fetched responses Package: next fixed in 16.4.5 Published Published

Self-hosted Next.js applications (App Router route handlers and the fetch cache) that return a fetched upstream response unchanged can emit a response whose declared framing does not match the body actually sent. When such an application sits behind an HTTP/1.1 reverse proxy that permits pipelined response queueing, a crafted upstream response can desynchronize responses between clients, enabling response injection and disclosure of other clients' responses.

Exploitation
No known exploitation
EPSS
0.49% chance of exploitation in the next 30 days, higher than 34.8% of CVEs
CVSS
6.3 out of 10 · source GitHub
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Versions
>= 16.0.0, <= 16.4.4 · fixed in 16.4.5
Weakness
CWE-444
Linked via
ecosystem package
Sources
GitHub
Dates
published Nov 19, 2026 · first seen here 5 min ago
CVSS score: 6.3 Severity: Medium Identifier: CVE-2026-119349GHSA-RHH4-G77R-R9QJ Next.js: Cross-user cache disclosure and poisoning in Next.js use cache with binary arguments Package: next fixed in 16.4.5 Published Published

Next.js App Router applications that pass binary arguments (such as Uint8Array or Blob values) to functions using the use cache directive can produce identical cache keys for distinct arguments, allowing cached results to be shared across users — cross-user disclosure of cached data or cache poisoning. This affects applications using use cache with binary arguments.

Exploitation
No known exploitation
EPSS
0.54% chance of exploitation in the next 30 days, higher than 39.2% of CVEs
CVSS
6.3 out of 10 · source GitHub
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Versions
>= 16.0.0, <= 16.4.4 · fixed in 16.4.5
Weakness
CWE-694
Linked via
ecosystem package
Sources
GitHub
Dates
published Nov 19, 2026 · first seen here 5 min ago
CVSS score: 6.3 Severity: Medium Identifier: CVE-2026-119350GHSA-VVGP-WW4W-46VF Next.js: Cache poisoning of shared fallback shells in Cache Components via request-supplied placeholder route params Package: next fixed in 16.4.5 Published Published

Self-hosted Next.js applications served with next start and built with cacheComponents: true but without Partial Prefetching accept a request-supplied route param value as a prerender placeholder. One unauthenticated GET request can poison the fallback shell cache entry that a family of routes shares.

Such a route is served from a shell that keeps its never-prerenderable params as placeholders, so every value of those params shares one cache entry. A path segment equal to the percent-encoded, bracketed name of its own route param is treated as an unresolved placeholder, and only that param is deferred. A layout above it then renders its concrete value into the shell during the blocking render, and the result, including its HTTP status, is stored under the shared key.

Depending on the application, the stored entry is one of the following:

  • A persistent 404, when the layout rejects the value with notFound(): served to every URL under the shell key with "revalidate": false, across server restarts, with no error logged.
  • A substituted param value, when the layout renders the value: the server-rendered HTML renders the attacker's value for that param in place of the visitor's own. A JavaScript client corrects it on hydration. No markup or script injection is possible, and no data is disclosed.
Preconditions
  1. cacheComponents: true with partialPrefetching unset or false.
  2. Self-hosted serving with next start.
  3. A dynamic route with a prerenderable param (generateStaticParams) whose requested value was not generated at build time.
  4. At least two never-prerenderable params below it: a layout reading the shallower one inside a Suspense boundary, and a deeper one the request supplies as the placeholder.
  5. A blocking fallback shell.
Workarounds

Set partialPrefetching: true in next.config. Otherwise, apps should upgrade to the patched version as soon as possible.

Exploitation
No known exploitation
EPSS
0.26% chance of exploitation in the next 30 days, higher than 11.1% of CVEs
CVSS
6.3 out of 10 · source GitHub
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Versions
>= 16.4.0, <= 16.4.4 · fixed in 16.4.5
Weakness
CWE-349
Linked via
ecosystem package
Sources
GitHub
Dates
published Nov 19, 2026 · first seen here 5 min ago
CVSS score: 6.3 Severity: Medium Identifier: CVE-2026-119351GHSA-VC7V-QV4W-WRV8 Next.js: Cache leak across root param values in nested 'use cache' functions via delayed inner stream metadata Package: next fixed in 16.4.5 Published Published

With Cache Components enabled, an outer 'use cache' function can be keyed incorrectly even when its inner 'use cache' call generates a fresh entry. If the inner function reads a root param (via next/root-params) and returns a value that still contains pending promises — for example an object with data that is ready immediately alongside slower data — React Flight delivers the ready portion to the outer function before the inner entry has finished publishing its root param dependencies. The outer function can then finish, and its cache entry is persisted under a key that omits that root param. The entry is written once and reused for all root param values, so a response for one root param value can serve content produced for a different value. Entries written this way can also ignore tag invalidation and cache lifetimes of the nested caches they consumed.

What values are leaked cannot be attacker controlled. Which value's content is served depends only on which invocation wrote the entry first.

This is a variant of https://github.com/advisories/GHSA-h694-7cp9-m8p3 that the fix for that advisory does not cover: it does not require the inner call to be served from an existing entry, and it does not depend on a slow cache handler.

Exploitation
No known exploitation
EPSS
0.40% chance of exploitation in the next 30 days, higher than 26.2% of CVEs
CVSS
6.3 out of 10 · source GitHub
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Versions
>= 16.2.0, <= 16.4.4 · fixed in 16.4.5
Weakness
CWE-362
Linked via
ecosystem package
Sources
GitHub
Dates
published Nov 17, 2026 · first seen here 4 min ago
CVSS score: 6.3 Severity: Medium Identifier: CVE-2026-119790GHSA-MFR8-8QWW-V76H Next.js: Information disclosure across root params when a 'use cache' function is called through unstable_cache() Package: next fixed in 16.4.5 Published Published

Next.js applications with 'use cache' can disclose cached data across root params when the same 'use cache' function is called both directly during rendering and through unstable_cache(), and that function reads a root param. Root params are route parameters of the root layout, and applications commonly use them to scope data, for example per locale.

During a cold process start, a cross-request deduplication race allowed an unstable_cache() call to join the in-flight fill of a concurrent direct call and receive its result, bypassing the root param check that would normally reject it. unstable_cache() then stored that result under a cache key without root params, so subsequent requests for other root param values received the same entry until it is revalidated or evicted. Cached data produced for one root param value is returned to requests for other values.

Exploitation requires the unstable_cache() request to arrive while the function's first fill after a process start is still in flight. Outside this race, the nesting already throws an error: 'use cache' inside unstable_cache() is unsupported, and avoiding it is a complete workaround.

Exploitation
No known exploitation
EPSS
0.40% chance of exploitation in the next 30 days, higher than 26.2% of CVEs
CVSS
6.3 out of 10 · source GitHub
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Versions
>= 16.3.0, <= 16.4.4 · fixed in 16.4.5
Weakness
CWE-362
Linked via
ecosystem package
Sources
GitHub
Dates
published Nov 16, 2026 · first seen here 4 min ago
CVSS score: 6.0 Severity: Medium Identifier: CVE-2026-119346GHSA-F3MH-RXG3-F5G2 Next.js: HttpOnly cookie exposure through internal response header on Next.js Edge runtime routes Package: next fixed in 15.5.29 Published Published

Next.js applications that set cookies through NextResponse on Edge runtime routes — App Router route handlers and Pages Router Edge API routes — send an internal x-middleware-set-cookie header in the public response, duplicating the cookie value and its attributes. This makes HttpOnly cookies, such as session tokens, readable by JavaScript running on the same origin when an application sets a sensitive cookie on an affected response.

Exploitation
No known exploitation
EPSS
0.49% chance of exploitation in the next 30 days, higher than 35.1% of CVEs
CVSS
6.0 out of 10 · source GitHub
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Versions
>= 15.0.0, <= 15.5.28 · fixed in 15.5.29
Weakness
CWE-200, CWE-201
Linked via
ecosystem package
Sources
GitHub
Dates
published Nov 19, 2026 · first seen here 5 min ago