CVE-2026-46342: Nuxt: `__nuxt_island` endpoint does not bind responses to request props, enabling shared-cache poisoning

Published May 19, 2026
·
Updated

Summary

The /nuxtisland/ endpoint accepts attacker-controlled props query/body parameters and renders any island component without verifying that the URL-resident hash (<Name><hashId>.json) was actually issued for those inputs by <NuxtIsland>. The hash is computed and embedded client-side but never validated server-side, so the same path can return materially different responses depending on the query.

Island components are documented as rendering independently of route context - page middleware does not apply to them, and they are intentionally cacheable as a function of their props. This advisory does not treat that contract as a vulnerability. It treats the absence of a binding between the URL the cache keys on and the response served at that URL as one.

Impact

In applications where a CDN or reverse-proxy in front of the app caches /nuxtisland/ keyed by path only (ignoring query) - a documented misconfiguration class, see GHSA-jvhm-gjrh-3h93 - an attacker can prime the cache for a path with their own choice of props, and subsequent users requesting the same path receive the attacker's rendered HTML rather than the response intended for them. The cache entry persists until normal expiry.

Where the affected island has any prop flowing into an unsafe HTML sink in application code (v-html, innerHTML, a third-party renderer treating a prop as HTML), this becomes stored XSS in the embedding page's origin until the cache entry expires. HttpOnly cookies remain out of reach but anything else in the origin (other cookies, in-origin requests, DOM state) is reachable by the injected script.

Preconditions:

- experimental.componentIslands enabled (or the default 'auto' with at least one server / island component in the app). - A shared intermediary cache (CDN, reverse-proxy, edge cache) keyed on path only. - For the XSS pivot specifically: an application-authored island that puts a prop through an unsafe HTML sink.

Without the second precondition, the response shape is per-request and unaffected. Without the third, the worst case is content-swap / inert HTML injection rather than script execution.

Patches

Patched in nuxt@4.4.6 and nuxt@3.21.6 by #35077. The island handler now recomputes the expected hashId from (name, props, context) using the same ohash function <NuxtIsland> already uses to embed the hash in the URL, and rejects requests (HTTP 400) whose URL-resident hash does not match. The response is now a pure function of the request path: a path-keyed shared cache returns the correct response to every requester for that path, and an attacker cannot synthesise a path whose hash matches arbitrary props.

Workarounds

For users unable to upgrade immediately:

- Ensure any intermediary cache keys /nuxtisland/ on the full query string, not on the path alone. This is the recommended configuration regardless. - Audit application-authored islands for props flowing into v-html / innerHTML / similar HTML sinks; treat island props as untrusted user input.

Note on island authentication

> [!IMPORTANT] > It's important to remember that route middleware does not run when rendering island components, and islands cannot rely on routing-layer auth. Applications gating sensitive data behind page middleware should enforce that auth inside the island's own data layer (server-only routes, useRequestEvent + manual session checks, etc.) rather than relying on the embedding page's middleware - this was true before this advisory and remains true after it.

A separate advisory addresses .server.vue pages registered as page<routeName> islands, where the documented "middleware doesn't run for islands" contract collides with the page's own definePageMeta({ middleware }) declaration in a way that constitutes a genuine bug rather than documented behaviour.

Other sources

Nuxt is an open-source web development framework for Vue.js. In Nuxt versions 3.1.0 to before 3.21.6 and 4.0.0-alpha.1 to before 4.4.6 and @nuxt/nitro-server versions 3.20.0 to before 3.21.6 and 4.0.0-alpha.1 to before 4.4.6, the /nuxtisland/ endpoint accepts attacker-controlled props query/body parameters and renders any island component without verifying that the URL-resident hash (<Name><hashId>.json) was actually issued for those inputs by <NuxtIsland>. The hash is computed and embedded client-side but never validated server-side, so the same path can return materially different responses depending on the query. This issue has been patched in versions 3.21.6 and 4.4.6.

MITRE

Affected Software

8 affected componentsFixes available
npm/@nuxt/nitro-server>=4.2.0<=4.4.5
4.4.6
npm/@nuxt/nitro-server>=3.20.0<=3.21.5
3.21.6
npm/nuxt>=4.0.0-alpha.1<=4.4.5
4.4.6
npm/nuxt>=3.1.0<=3.21.5
3.21.6
Nuxt Nuxt>=3.1.0<3.21.6
Nuxt Nuxt>=4.0.0<4.4.5
Nuxt Nuxt\/nitro-server Node.js>=3.20.0<3.21.6
Nuxt Nuxt\/nitro-server Node.js>=4.2.0<4.4.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/@nuxt/nitro-server to a version that resolves this vulnerability.

    Fixed in 4.4.6
  2. Upgrade

    Upgrade npm/@nuxt/nitro-server to a version that resolves this vulnerability.

    Fixed in 3.21.6
  3. Upgrade

    Upgrade npm/nuxt to a version that resolves this vulnerability.

    Fixed in 4.4.6
  4. Upgrade

    Upgrade npm/nuxt to a version that resolves this vulnerability.

    Fixed in 3.21.6
  5. Compensating control

    Configure any intermediary caches (CDN, reverse proxy, edge cache) to key requests for /__nuxt_island/* on the full query string (not path-only) so cached island responses cannot be poisoned by differing query/body props.

  6. Operational

    Audit all application-authored island components for props flowing into unsafe HTML sinks (v-html, innerHTML, third-party renderers treating props as HTML). Treat island props as untrusted input and sanitize/escape or remove unsafe sinks as appropriate.

  7. Operational

    Ensure island components enforce any required authentication/authorization within their own server-side data layer (e.g., server-only routes, useRequestEvent with manual session checks) rather than relying on page route middleware, which does not run for islands.

Event History

May 19, 2026
Advisory Published
via GitHub·08:03 PM
Data Sourced
via GitHub·08:03 PM
DescriptionWeaknessAffected Software
Jun 12, 2026
CVE Published
via MITRE·12:50 PM
Data Sourced
via MITRE·12:50 PM
DescriptionWeakness
Data Sourced
via NVD·02:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-46342?

CVE-2026-46342 has a risk severity rating of 60.

2

What type of vulnerability is CVE-2026-46342?

CVE-2026-46342 is classified as a Cross-Site Scripting (XSS) vulnerability.

3

How can CVE-2026-46342 be mitigated?

To mitigate CVE-2026-46342, ensure that the endpoint properly validates the input parameters and verifies the authenticity of the URL-resident hash.

4

Which software is affected by CVE-2026-46342?

The vulnerability CVE-2026-46342 affects npm/@nuxt/nitro-server and npm/nuxt.

5

When was CVE-2026-46342 published?

CVE-2026-46342 was published on May 19, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203