org.mvnpm:next@16.3.6

  • latest version

    16.4.5

  • latest non vulnerable version

  • first published

    2 years ago

  • latest version published

    1 months ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.mvnpm:next package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Origin Validation Error

    org.mvnpm:next is a react framework.

    Affected versions of this package are vulnerable to Origin Validation Error via the MCP middleware endpoint /_next/mcp, where insufficient host validation allows a DNS rebinding attack. An attacker who controls a malicious DNS server can cause a victim's browser to treat the attacker's domain as a same-origin resource, bypassing the cross-site request protections applied in development mode and gaining read access to confidential data exposed by the MCP server.

    How to fix Origin Validation Error?

    Upgrade org.mvnpm:next to version 16.3.8 or higher.

    [16.0.0,16.3.8)
    • L
    Origin Validation Error

    org.mvnpm:next is a react framework.

    Affected versions of this package are vulnerable to Origin Validation Error via the MCP middleware (get-mcp-middleware.ts) and the cross-site dev request blocker (block-cross-site-dev.ts), which fail to adequately validate the request origin against the host. An attacker who controls a DNS record can rebind a malicious domain to the victim's localhost address, causing the victim's browser to issue cross-origin requests to the local Next.js development server that bypass the intended origin checks, resulting in limited confidentiality and integrity impact.

    How to fix Origin Validation Error?

    Upgrade org.mvnpm:next to version 16.3.8 or higher.

    [16.0.0,16.3.8)
    • M
    Use of Cache Containing Sensitive Information

    org.mvnpm:next is a react framework.

    Affected versions of this package are vulnerable to Use of Cache Containing Sensitive Information via incorrect cache keying in nested 'use cache' function handlers that access root params. When Cache Components is enabled (cacheComponents: true), a 'use cache' function that calls another 'use cache' function which reads a root param can be keyed incorrectly when the inner call is served from an existing cache entry: the enclosing function's cache key then omits that root param. The enclosing 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, whether the page is prerendered at build time, at runtime, or rendered dynamically, and shared cache headers allow downstream caches to redistribute the mismatched content further.

    Note: This is only exploitable when the cacheComponents: true option is enabled and the application uses nested 'use cache' functions where the inner function reads a root param.

    How to fix Use of Cache Containing Sensitive Information?

    Upgrade org.mvnpm:next to version 16.3.8 or higher.

    [16.3.0,16.3.8)
    • M
    Use of Cache Containing Sensitive Information

    org.mvnpm:next is a react framework.

    Affected versions of this package are vulnerable to Use of Cache Containing Sensitive Information via insufficient scoping of response cache keys in the server's route caching logic in base-server.ts. Because cache keys are not bound to their source route, a response cached for one route can be served for a different route that shares the same key, allowing an attacker to poison the cache and cause other users to receive incorrect or attacker-influenced responses, or to trigger a denial of service through cache corruption.

    How to fix Use of Cache Containing Sensitive Information?

    Upgrade org.mvnpm:next to version 16.3.8 or higher.

    [15.1.8,16.3.8)
    • M
    Use of Cache Containing Sensitive Information

    org.mvnpm:next is a react framework.

    Affected versions of this package are vulnerable to Use of Cache Containing Sensitive Information via cross-request deduplication in the 'use cache' mechanism, where draft mode state is not accounted for when sharing cached fills between concurrent requests. A cache fill executed under draft mode - which may contain unpublished content - can be registered and served to other non-draft requests, and conversely a draft mode request can join a pending public fill and receive published content instead of draft content, leaking unpublished data across request boundaries.

    How to fix Use of Cache Containing Sensitive Information?

    Upgrade org.mvnpm:next to version 16.3.8 or higher.

    [16.3.0,16.3.8)
    • H
    Server-side Request Forgery (SSRF)

    org.mvnpm:next is a react framework.

    Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) in the Image Optimization remote fetch, which resolves and requests an allowlisted remote URL without constraining the address that name resolves to, so a host permitted by images.remotePatterns can direct the fetch at an internal address. An attacker can make the server issue requests to private network addresses and read the responses back through the image endpoint, by controlling the DNS records of a host that matches an allowlist entry so the name resolves to that internal address at fetch time. This requires images.remotePatterns to be configured with at least one host whose DNS entries the attacker controls or can influence, so applications with no images.remotePatterns configured are unaffected.

    How to fix Server-side Request Forgery (SSRF)?

    Upgrade org.mvnpm:next to version 16.3.8 or higher.

    [16.0.0,16.3.8)
    • C
    Deserialization of Untrusted Data

    org.mvnpm:next is a react framework.

    Affected versions of this package are vulnerable to Deserialization of Untrusted Data via a flaw in the React Server Component transport protocol implementation, specifically in the serializeReadableStream, serializeReader, and serializeAsyncIterable functions within the compiled react-server-dom-turbopack and react-server-dom-webpack client bundles. The stream part identifiers used when appending chunks to FormData are constructed without a distinguishing prefix ("S"), allowing stream data to be written to incorrect form field keys. An attacker who can influence the server component data stream can exploit this to corrupt the transport payload, potentially achieving arbitrary code execution on the client or server.

    How to fix Deserialization of Untrusted Data?

    Upgrade org.mvnpm:next to version 16.4.1 or higher.

    [16.0.0,16.4.1)
    • M
    Use of Cache Containing Sensitive Information

    org.mvnpm:next is a react framework.

    Affected versions of this package are vulnerable to Use of Cache Containing Sensitive Information via insufficient scoping of response cache keys in the server's cache key generation logic, where cache keys are not bound to their source route. An attacker can trigger a cache key collision between distinct routes, causing one route's cached response to be served for a different route and resulting in partial availability loss for affected endpoints.

    How to fix Use of Cache Containing Sensitive Information?

    Upgrade org.mvnpm:next to version 16.3.8 or higher.

    [13.2.3,16.3.8)
    • H
    Excessive Iteration

    org.mvnpm:next is a react framework.

    Affected versions of this package are vulnerable to Excessive Iteration via a crafted request using App Router with at least one Server Action which can lead to excessive CPU usage blocking processing of further requests in the same process.

    How to fix Excessive Iteration?

    Upgrade org.mvnpm:next to version 16.4.1 or higher.

    [13.2.3,16.4.1)
    • C
    Remote Code Execution (RCE)

    org.mvnpm:next is a react framework.

    Affected versions of this package are vulnerable to Remote Code Execution (RCE) in applications using App router with Cache Component.

    How to fix Remote Code Execution (RCE)?

    Upgrade org.mvnpm:next to version 16.4.1 or higher.

    [16.0.0,16.4.1)
    • M
    Use of Cache Containing Sensitive Information

    org.mvnpm:next is a react framework.

    Affected versions of this package are vulnerable to Use of Cache Containing Sensitive Information via insufficient scoping of response cache keys to their source route in base-server.ts and related export/build pipeline files. When multiple routes share a cache key, a response generated for one route can be served to requests for a different route, allowing an attacker to cause incorrect cached content to be returned to users, resulting in limited availability impact through cache poisoning or stale-data delivery.

    How to fix Use of Cache Containing Sensitive Information?

    Upgrade org.mvnpm:next to version 16.3.8 or higher.

    [15.1.8,16.3.8)
    • M
    Use of Cache Containing Sensitive Information

    org.mvnpm:next is a react framework.

    Affected versions of this package are vulnerable to Use of Cache Containing Sensitive Information via cross-request deduplication in the use-cache-wrapper.ts cache function, where draft mode state is not accounted for when sharing cached fills across concurrent requests. A draft mode request can join a pending public cache fill and receive published content instead of draft content, or conversely, a fill executed under draft mode containing unpublished content can be registered and served to non-draft requests.

    Note: This is only exploitable when the 'use cache' directive is in use and concurrent requests occur, one of which has draft mode enabled.

    How to fix Use of Cache Containing Sensitive Information?

    Upgrade org.mvnpm:next to version 16.3.8 or higher.

    [,16.3.8)
    • C
    Dependency on Vulnerable Third-Party Component

    org.mvnpm:next is a react framework.

    Affected versions of this package are vulnerable to Dependency on Vulnerable Third-Party Component via the sharp image processing dependency used by next/image. A vulnerable version of sharp is bundled as an optional dependency, and an attacker can exploit a flaw in that library to achieve remote code execution, full confidentiality loss, integrity loss, and availability loss on both the application and system level.

    How to fix Dependency on Vulnerable Third-Party Component?

    Upgrade org.mvnpm:next to version 16.4.1 or higher.

    [13.2.3,16.4.1)
    • H
    Allocation of Resources Without Limits or Throttling

    org.mvnpm:next is a react framework.

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via App Router's Server Actions handler, where requests cause excessive CPU usage that blocks processing of further requests in the same process. An unauthenticated remote attacker can send requests to exhaust CPU resources, rendering the application unable to serve subsequent requests.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade org.mvnpm:next to version 16.4.1 or higher.

    [13.2.3,16.4.1)
    • M
    Race Condition

    org.mvnpm: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.

    How to fix Race Condition?

    Upgrade org.mvnpm:next to version 16.4.5 or higher.

    [16.2.0,16.4.5)
    • M
    Race Condition

    org.mvnpm: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).

    How to fix Race Condition?

    Upgrade org.mvnpm:next to version 16.4.5 or higher.

    [16.3.0,16.4.5)
    • M
    Use of Multiple Resources with Duplicate Identifier

    org.mvnpm: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).

    How to fix Use of Multiple Resources with Duplicate Identifier?

    Upgrade org.mvnpm:next to version 16.4.5 or higher.

    [16.0.0,16.4.5)
    • M
    HTTP Request Smuggling

    org.mvnpm: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.

    How to fix HTTP Request Smuggling?

    Upgrade org.mvnpm:next to version 16.4.5 or higher.

    [,16.4.5)
    • M
    Insertion of Sensitive Information Into Sent Data

    org.mvnpm: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.

    How to fix Insertion of Sensitive Information Into Sent Data?

    Upgrade org.mvnpm:next to version 16.4.5 or higher.

    [15.1.8,16.4.5)
    • M
    Improper Validation of Specified Type of Input

    org.mvnpm: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.

    How to fix Improper Validation of Specified Type of Input?

    Upgrade org.mvnpm:next to version 16.4.5 or higher.

    [15.1.8,16.4.5)