Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. nuxt
  4. ›
  5. CVE-2026-71320

CVE-2026-71320: Nuxt: Server-Side Remote Code Execution via Runtime Template Injection in Nuxt Server Island Props

August 5, 2026

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.

References

  • github.com/advisories/GHSA-9473-5f9j-94wq
  • github.com/nuxt/nuxt/commit/5b60017f7f1d5e9384cadf1d6c580b99d583c418
  • github.com/nuxt/nuxt/commit/ee6c846338f4eb75801815dda86df1f494725859
  • github.com/nuxt/nuxt/releases/tag/v3.21.10
  • github.com/nuxt/nuxt/releases/tag/v4.5.1
  • github.com/nuxt/nuxt/security/advisories/GHSA-9473-5f9j-94wq
  • nvd.nist.gov/vuln/detail/CVE-2026-71320

Code Behaviors & Features

Detect and mitigate CVE-2026-71320 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 3.4.0 before 3.21.10, all versions starting from 4.0.0 before 4.5.1

Fixed versions

  • 3.21.10
  • 4.5.1

Solution

Upgrade to versions 3.21.10, 4.5.1 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

npm/nuxt/CVE-2026-71320.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:33 +0000.