Vulnerabilities |
7 via 7 paths |
|---|---|
Dependencies |
45 |
Source |
GitHub |
Find, fix and prevent vulnerabilities in your code.
medium severity
new
- Vulnerable module: next
- Introduced through: next@16.4.1
Detailed paths
-
Introduced through: reframe@reframe-oss/reframe › next@16.4.1Remediation: Upgrade to next@16.4.5.
Overview
next is a react framework.
Affected versions of this package are vulnerable to Improper Validation of Specified Type of Input via a false-positive AVIF/HEIC detection bypass in the detectContentType function within image-optimizer.ts. The previous ISOBMFF magic-byte check used a wildcard for the first four bytes of the ftyp box size, allowing an SVG file containing the comment <!--ftypavif--> or <!--ftypcheic--> to match the AVIF or HEIC signature. This causes the image optimizer (/_next/image) to pass the attacker-supplied SVG to an SVG parser even when dangerouslyAllowSVG: false (the default), increasing exposure to denial of service and SVG decoder vulnerabilities.
Note: This is only exploitable on self-hosted deployments where the Next.js image optimizer is active.
Remediation
Upgrade next to version 15.5.29, 16.4.5 or higher.
References
medium severity
new
- Vulnerable module: next
- Introduced through: next@16.4.1
Detailed paths
-
Introduced through: reframe@reframe-oss/reframe › next@16.4.1Remediation: Upgrade to next@16.4.5.
Overview
next is a react framework.
Affected versions of this package are vulnerable to Acceptance of Extraneous Untrusted Data With Trusted Data via request-supplied placeholder route params in the app-page-runtime template when cacheComponents: true is set without Partial Prefetching. A path segment equal to the percent-encoded, bracketed name of its own route param is accepted as an unresolved placeholder, causing a layout above it to render the attacker-controlled value into the shared fallback shell during a blocking render. The poisoned entry, including its HTTP status, is then stored under the shared cache key and served to every URL in that route family, resulting in either a persistent 404 or a substituted param value visible in server-rendered HTML until hydration corrects it on the client. No markup or script injection is possible and no data is disclosed.
Note: This is only exploitable when cacheComponents: true is set with partialPrefetching unset or false, the application is self-hosted with next start, the route has a prerenderable param whose value was not generated at build time, at least two never-prerenderable params exist below it with a layout reading the shallower one inside a Suspense boundary, and a blocking fallback shell is in use.
Workaround
Set partialPrefetching: true in next.config.
Remediation
Upgrade next to version 16.4.5 or higher.
References
medium severity
new
- Vulnerable module: next
- Introduced through: next@16.4.1
Detailed paths
-
Introduced through: reframe@reframe-oss/reframe › next@16.4.1Remediation: Upgrade to next@16.4.5.
Overview
next is a react framework.
Affected versions of this package are vulnerable to HTTP Request Smuggling via App Router route handlers and the fetch cache, when a self-hosted application forwards a fetched upstream response unchanged. The fetch layer transparently decodes compressed bodies but preserves the original framing headers (content-length, content-encoding, transfer-encoding), causing the declared framing to diverge from 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 cross-client response injection and disclosure of other clients' responses.
Note: This is only exploitable when the application is self-hosted behind an HTTP/1.1 reverse proxy that permits pipelined response queueing and forwards fetched upstream responses unchanged.
Remediation
Upgrade next to version 15.5.29, 16.4.5 or higher.
References
medium severity
new
- Vulnerable module: next
- Introduced through: next@16.4.1
Detailed paths
-
Introduced through: reframe@reframe-oss/reframe › next@16.4.1Remediation: Upgrade to next@16.4.5.
Overview
next is a react framework.
Affected versions of this package are vulnerable to Race Condition via delayed inner stream metadata in nested 'use cache' functions, where an outer 'use cache' function can be keyed incorrectly when its inner 'use cache' call reads a root param via next/root-params and returns a value containing pending promises. React Flight delivers the ready portion of the inner result to the outer function before the inner cache entry has finished publishing its root param dependencies, allowing the outer function to complete and persist its cache entry under a key that omits the root param. That entry is then reused for all root param values, so a response produced for one root param value can be served to requests for a different value. Entries written this way can also bypass tag invalidation and cache lifetimes of the nested caches they consumed.
Note: This is only exploitable when the Cache Components ('use cache') feature is enabled and the application uses nested 'use cache' functions where the inner function reads root params via next/root-params.
Remediation
Upgrade next to version 16.4.5 or higher.
References
medium severity
new
- Vulnerable module: next
- Introduced through: next@16.4.1
Detailed paths
-
Introduced through: reframe@reframe-oss/reframe › next@16.4.1Remediation: Upgrade to next@16.4.5.
Overview
next is a react framework.
Affected versions of this package are vulnerable to Race Condition via a cross-request deduplication race in use-cache-wrapper.ts when a 'use cache' function is called both directly during rendering and through unstable_cache(), and that function reads a root param. During a cold process start, an unstable_cache() call can 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 stores that result under a cache key without root params, so subsequent requests for other root param values receive the same cached entry until it is revalidated or evicted. Cached data produced for one root param value is thus returned to requests for other values.
Note: 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).
Workaround
Avoid calling the same 'use cache' function both directly during rendering and through unstable_cache(). Outside the race window, the nesting already throws an error, so ensuring 'use cache' functions are never nested inside unstable_cache() is a complete workaround.
Remediation
Upgrade next to version 16.4.5 or higher.
References
medium severity
new
- Vulnerable module: next
- Introduced through: next@16.4.1
Detailed paths
-
Introduced through: reframe@reframe-oss/reframe › next@16.4.1Remediation: Upgrade to next@16.4.5.
Overview
next is a react framework.
Affected versions of this package are vulnerable to Use of Multiple Resources with Duplicate Identifier via a cache key collision in encodeFormData within the use cache directive implementation. When binary arguments such as Uint8Array or Blob values are passed to functions annotated with use cache, distinct binary inputs can produce identical cache keys, causing cached results from one user's request to be served to another user. This enables cross-user disclosure of cached data or cache poisoning.
Note: This is only exploitable when the application uses the use cache directive with binary arguments (e.g. Uint8Array or Blob values).
Remediation
Upgrade next to version 16.4.5 or higher.
References
medium severity
new
- Vulnerable module: next
- Introduced through: next@16.4.1
Detailed paths
-
Introduced through: reframe@reframe-oss/reframe › next@16.4.1Remediation: Upgrade to next@16.4.5.
Overview
next is a react framework.
Affected versions of this package are vulnerable to Insertion of Sensitive Information Into Sent Data via NextResponse on Edge runtime routes (App Router route handlers and Pages Router Edge API routes), which incorrectly include the internal x-middleware-set-cookie header in public responses. This header duplicates cookie values and their attributes, causing HttpOnly cookies such as session tokens to become readable by JavaScript running on the same origin, effectively bypassing the HttpOnly protection.
Remediation
Upgrade next to version 15.5.29, 16.4.5 or higher.