org.mvnpm:nuxt@4.6.0

  • 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
    Regular Expression Denial of Service (ReDoS)

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via a quadratic-cost trailing-slash regular expression used in routeToPayloadURL (in url.ts) and the early-404 path handler. A request path containing a long run of consecutive slash characters causes the regular expression /\/*$/ to perform work that grows quadratically with the number of slashes, synchronously blocking the Node.js event loop and delaying all other requests handled by the same process.

    Note: This is only exploitable when server-side rendering is active and at least one route is covered by an isr, swr, or cache route rule, or when experimental.early404 is enabled. Fully prerendered applications and client-only applications are unaffected.

    How to fix Regular Expression Denial of Service (ReDoS)?

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

    [4.6.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
    Interpretation Conflict

    Affected versions of this package are vulnerable to Interpretation Conflict via getRouterParam and getRouterParams in nuxt/server, which misalign the raw request URL against the decoded path h3 routed on when a path segment contains an encoded question mark (%3F). Because h3 routes only up to the decoded ? but the raw URL is not cut at the same point, the helpers read parameters from the wrong path segments and can return a value different from the one h3 matched in event.context.params. An attacker can craft a request where an authorization check using the Nuxt helper passes for one resource while the actual resource selection, driven by event.context.params or h3's matched params, operates on a different resource, enabling access to unauthorized resources.

    Note: This is only exploitable when an application reads the same route parameter from two different sources - one being getRouterParam/getRouterParams and the other being event.context.params or h3's helpers - and relies on them agreeing.

    How to fix Interpretation Conflict?

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

    [4.6.0,4.6.2)
    • M
    Incorrect Authorization

    Affected versions of this package are vulnerable to Incorrect Authorization via dot segment handling in toRequestEvent in packages/nitro-server/src/runtime/utils/event.ts. An attacker can send a request containing . or .. path segments (including their percent-encoded forms such as %2e) to cause the server-side router to resolve the path to a different route than the one named by event.path, potentially bypassing server middleware path checks and accessing unintended pages or resources.

    Note: Path checks in server middleware should also account for the page router matching paths case-insensitively unless router.options.sensitive is set.

    How to fix Incorrect Authorization?

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

    [4.6.0,4.6.3)
    • 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)
    • 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)