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

Low 2.3 Published Updated

Attackers can poison shared caches by manipulating props in Nuxt island endpoints, leading to cross-site scripting and data modification.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-46342?

CVE-2026-46342 is a low-severity cross-site scripting vulnerability in nuxt, published on 12 Jun 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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 /__nuxt_island/* 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.

Weakness: CWE-79, CWE-444, CWE-349

Which versions are affected by CVE-2026-46342?

8 open source packages ship an affected version, including @nuxt/nitro-server and nuxt. It affects 2 products.

PackageAffectedFixed in
@nuxt/nitro-server npmFrom 3.20.03.21.6
@nuxt/nitro-server npmFrom 3.20.03.21.6
@nuxt/nitro-server npmFrom 4.2.04.4.6
@nuxt/nitro-server npmFrom 4.2.04.4.6
nuxt npmFrom 3.1.03.21.6
nuxt npmFrom 3.1.03.21.6
2 more packages
nuxt npmFrom 4.0.0-alpha.14.4.6
nuxt npmFrom 4.0.0-alpha.14.4.6

Products include Nuxt Nuxt, Nuxt Nuxt\/Nitro-Server.

How do I fix CVE-2026-46342?

Upgrade @nuxt/nitro-server to a fixed version for your release line: 3.21.6 or 4.4.6.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-46342 being exploited?

There is no known exploitation of CVE-2026-46342 in the wild and no public exploit code.

Sources

Also known as GHSA-g8wj-3cr3-6w7v.

Is CVE-2026-46342 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free