org.mvnpm:nuxt@4.4.6

  • latest version

    4.6.3

  • first published

    8 months ago

  • latest version published

    1 months ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.mvnpm:nuxt 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
    • L
    Improper Encoding or Escaping of Output

    Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output via the getIslandHash function in island-hash.ts, which computes the /__nuxt_island path hash using ohash serialization that does not escape quotes in string values or delimiters in object keys. This allows two different island-prop tuples to produce the same hash and therefore the same path, so a request with attacker-controlled props can collide with a legitimate island path and cause different content to be served at that path. If the substituted prop reaches an unsafe HTML sink such as v-html or innerHTML in the island component, the colliding response can execute script in the application origin; otherwise the impact is content substitution.

    Note: For prerendering, substituted content is written into the generated page only if the crawler reaches a colliding URL before rendering the page with the legitimate props.

    How to fix Improper Encoding or Escaping of Output?

    A fix was pushed into the master branch but not yet published.

    [0,)
    • M
    Interpretation Conflict

    Affected versions of this package are vulnerable to Interpretation Conflict via routeRules matching in the route-rules resolution logic, which compares route rules against the raw request path while leaving encoded slashes (%2F) encoded. A catch-all page route such as app/pages/[...slug].vue or a custom multi-segment page route decodes %2F into a route parameter, creating a mismatch where getRouteRules returns an incomplete result. An unauthenticated attacker can send a request with %2F in the path to render a page without the redirect, headers, proxy, ssr, noScripts, appMiddleware, or appLayout rules configured for the decoded path.

    Note: Protected content is exposed only when the page interprets the decoded parameter accordingly: a custom multi-segment parameter resolves the decoded path directly, while a repeatable catch-all exposes it only when the page joins the slug array with /; pages that load content via route.path are not affected because that property retains the encoding.

    How to fix Interpretation Conflict?

    A fix was pushed into the master branch but not yet published.

    [0,)
    • M
    Information Exposure

    Affected versions of this package are vulnerable to Information Exposure via the server-side error handling path in createErrorFromThrown, when a page, plugin, or route middleware throws a non-HTTP error during server rendering. Nuxt wraps the thrown value with createError and incorrectly treats it as an error deliberately exposed by the application, causing the original message and data to be included in the error page payload (__NUXT_DATA__) and JSON error responses in production. An attacker who can trigger a server-side error - for example by supplying an input that causes a $fetch call to fail - receives the full upstream error message and data, which may include internal URLs, query-string secrets, response bodies, or database host names, regardless of what a custom error.vue renders.

    Note: Errors created deliberately with createError or showError, errors returned by useFetch or useAsyncData, and server/api routes are not affected.

    How to fix Information Exposure?

    A fix was pushed into the master branch but not yet published.

    [0,)
    • M
    Cross-site Scripting (XSS)

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the server island head rendering pipeline in packages/nitro-server/src/runtime/handlers/island.ts, where head entries are serialized without applying the useHeadSafe allowlist. An attacker who can influence head input for a server island component can inject unsanitized values into the rendered HTML head, enabling cross-site scripting in the consuming page.

    How to fix Cross-site Scripting (XSS)?

    Upgrade org.mvnpm:nuxt to version 4.6.2 or higher.

    [4.4.2,4.6.2)
    • L
    Cross-site Scripting (XSS)

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the NuxtLink component's anchor href resolution, where an attacker can supply a URL that bypasses protocol sanitization and redirects users to an arbitrary external destination. The previous sanitizeExternalHref function did not resolve anchor hrefs through the router, allowing relative or protocol-relative values to escape the intended navigation scope. A user following a crafted link can be redirected to an attacker-controlled site.

    Note: This is only exploitable in applications running without a pages/ directory, where pages resolves to false and Nuxt registers its own router in place of vue-router.

    How to fix Cross-site Scripting (XSS)?

    Upgrade org.mvnpm:nuxt to version 4.6.0 or higher.

    [4.4.2,4.6.0)
    • M
    Incorrect Authorization

    Affected versions of this package are vulnerable to Incorrect Authorization via case-sensitive matching of server-side route rules, where route rule protections (such as redirect, headers, and proxy rules) can be bypassed by an attacker who sends a request path with differing letter case. The resolveRequestRouteRules utility fails to normalize the request path before matching it against configured route rule keys, allowing a request like /Admin to evade a rule defined for /admin. This affects any protection that relies on server-side route rule matching.

    Note: This is only exploitable when server-side route rules are used to enforce access controls or apply security-relevant headers, redirects, or proxy rules, and router.options.sensitive is not explicitly set.

    How to fix Incorrect Authorization?

    Upgrade org.mvnpm:nuxt to version 4.6.2 or higher.

    [4.4.2,4.6.2)
    • H
    Improper Validation of Specified Quantity in Input

    Affected versions of this package are vulnerable to Improper Validation of Specified Quantity in Input via the v-for in server-side rendering of islands or server components. An attacker can cause the server to allocate excessive memory and crash by sending a request with a large integer value for a prop used in v-for, leading to unbounded expansion during rendering. This can be exploited remotely without authentication by crafting requests that trigger excessive iteration counts in the rendering logic.

    How to fix Improper Validation of Specified Quantity in Input?

    Upgrade org.mvnpm:nuxt to version 4.5.1 or higher.

    [4.4.2,4.5.1)
    • M
    Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')

    Affected versions of this package are vulnerable to Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') via the as prop in server island components that forward attacker-controlled values into dynamic component resolution. An attacker can instantiate any globally-registered Vue component or native HTML element by supplying a crafted value, potentially leading to unauthorized access or manipulation of application behavior.

    Note: This is only exploitable if a server island component forwards untrusted input into a dynamic component path, either explicitly or via attribute fallthrough when the island's root is a polymorphic component.

    How to fix Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')?

    Upgrade org.mvnpm:nuxt to version 4.5.1 or higher.

    [4.4.2,4.5.1)
    • C
    Arbitrary Code Injection

    Affected versions of this package are vulnerable to Arbitrary Code Injection via the /__nuxt_island/ endpoint when vue.runtimeCompiler is enabled and a server island component forwards attacker-controlled props into Vue's dynamic component resolution. An attacker can execute arbitrary code on the server by injecting a template key into the island props, which is then compiled and executed in the server process.

    Note: This is only exploitable if vue.runtimeCompiler is set to true and the application has a server island component that forwards attacker-controlled values into a dynamic-component path, either explicitly or via attribute fallthrough.

    How to fix Arbitrary Code Injection?

    Upgrade org.mvnpm:nuxt to version 4.5.1 or higher.

    [4.4.2,4.5.1)
    • H
    Allocation of Resources Without Limits or Throttling

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the island renderer endpoint when attacker-controlled input is decoded and hashed before URL-resident hash validation. An attacker can exhaust CPU resources and degrade or stall the server by sending large, deeply nested JSON payloads to the endpoint, causing the server to process and reject the request only after significant computation.

    Note: This is only exploitable if the server is accessible to unauthenticated users and does not enforce request body size or nesting depth limits.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade org.mvnpm:nuxt to version 4.5.1 or higher.

    [4.4.2,4.5.1)
    • C
    Cross-site Scripting (XSS)

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the navigateTo open option. An attacker can execute arbitrary scripts in the application's origin by supplying a crafted open parameter containing a script-capable URL.

    How to fix Cross-site Scripting (XSS)?

    Upgrade org.mvnpm:nuxt to version 4.4.7 or higher.

    [,4.4.7)
    • C
    Open Redirect

    Affected versions of this package are vulnerable to Open Redirect via the reloadNuxtApp() function. An attacker can redirect users to attacker-controlled hosts by injecting protocol-relative paths such as //evil.com, potentially enabling phishing attacks or theft of OAuth authorization codes.

    How to fix Open Redirect?

    Upgrade org.mvnpm:nuxt to version 4.4.7 or higher.

    [,4.4.7)
    • M
    Exposure of Sensitive System Information to an Unauthorized Control Sphere

    Affected versions of this package are vulnerable to Exposure of Sensitive System Information to an Unauthorized Control Sphere via the unauthenticated /.well-known/appspecific/com.chrome.devtools.json endpoint, which exposes the absolute filesystem path of the project and a persistent workspace UUID. An attacker can obtain sensitive information about the development environment by sending direct HTTP requests to the exposed endpoint when the development server is running and accessible on a non-loopback interface or through DNS rebinding attacks.

    Note: This is only exploitable if the development server is started with host binding to a non-loopback interface or if DNS rebinding is possible.

    How to fix Exposure of Sensitive System Information to an Unauthorized Control Sphere?

    Upgrade org.mvnpm:nuxt to version 4.4.7 or higher.

    [4.4.2,4.4.7)
    • L
    Cross-site Scripting (XSS)

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the NoScript component when untrusted input is interpolated into its slot content. An attacker can inject malicious HTML or scripts by supplying specially crafted data that is rendered unescaped in the server-generated HTML, potentially leading to execution of arbitrary code in the user's browser.

    How to fix Cross-site Scripting (XSS)?

    Upgrade org.mvnpm:nuxt to version 4.4.7 or higher.

    [,4.4.7)
    • M
    Incorrect Default Permissions

    Affected versions of this package are vulnerable to Incorrect Default Permissions via the module and resolve request types in the internal IPC server. An attacker can access sensitive files and secrets by connecting to the world-accessible abstract-namespace Unix socket and issuing crafted requests.

    Note: This is only exploitable if the development server is running on a shared multi-tenant Linux host outside of containerized or isolated environments.

    How to fix Incorrect Default Permissions?

    Upgrade org.mvnpm:nuxt to version 4.4.7 or higher.

    [4.4.2,4.4.7)
    • C
    Open Redirect

    Affected versions of this package are vulnerable to Open Redirect via improper handling of URLs in the navigateTo function. An attacker can execute arbitrary scripts or redirect users to malicious sites by supplying crafted URLs that exploit path normalization and protocol-relative bypasses.

    How to fix Open Redirect?

    Upgrade org.mvnpm:nuxt to version 4.4.7 or higher.

    [,4.4.7)
    • M
    Improper Handling of Case Sensitivity

    Affected versions of this package are vulnerable to Improper Handling of Case Sensitivity through the getRouteRules function in the route rules matcher. An attacker can evade prerender, SSR, or redirect rules by sending a request with a path that uses different letter casing from the configured route rule. This causes the application to serve content without applying the intended route-specific restrictions, potentially exposing pages that should be redirected or rendered differently.

    Notes

    • routeRules lookups are used from both the page-router plugin and the no-pages router plugin, so the mismatch can affect SSR and client-side navigations alike, rather than only one rendering path.
    • The bypass is limited to deployments that rely on routeRules.appMiddleware for access control; page-level middleware declared with definePageMeta({ middleware }) is bound to the matched route record and is not part of this issue.

    Workarounds

    • Set router.options.sensitive = true so vue-router matches paths case-sensitively, preventing attackers from bypassing route rules by changing the case of a protected URL.

    How to fix Improper Handling of Case Sensitivity?

    Upgrade org.mvnpm:nuxt to version 4.4.7 or higher.

    [4.4.2,4.4.7)
    • M
    Cross-site Scripting (XSS)

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the NuxtLink href when attacker-controlled input is bound to the to or href properties. An attacker can execute arbitrary scripts in the context of the application by supplying a crafted javascript: or data: URL, which is reflected into the rendered markup and executed when a user clicks the link. This also exposes a phishing surface by allowing data URLs to be reflected through the same sink, enabling deceptive links anchored to legitimate application content.

    How to fix Cross-site Scripting (XSS)?

    Upgrade org.mvnpm:nuxt to version 4.4.7 or higher.

    [,4.4.7)