Arbitrary Code Injection Affecting @nuxt/nitro-server package, versions <3.21.10>=4.2.0 <4.5.1


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.44% (37th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-NUXTNITROSERVER-18565116
  • published6 Aug 2026
  • disclosed5 Aug 2026
  • creditUnknown

Introduced: 5 Aug 2026

NewCVE-2026-71320  (opens in a new tab)
CWE-74  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade @nuxt/nitro-server to version 3.21.10, 4.5.1 or higher.

Overview

@nuxt/nitro-server is a Nitro server integration for Nuxt

Affected versions of this package are vulnerable to Arbitrary Code Injection via the /__nuxt_island/ endpoint when vue.runtimeCompiler is enabled and a server island component forwards attacker-controlled props into Vue's dynamic component resolution. An attacker can execute arbitrary code on the server by injecting a template key into the island props, which is then compiled and executed in the server process.

Note: This is only exploitable if vue.runtimeCompiler is set to true and the application has a server island component that forwards attacker-controlled values into a dynamic-component path, either explicitly or via attribute fallthrough.

Workaround

This vulnerability can be mitigated by ensuring vue.runtimeCompiler is set to false, avoiding forwarding island props into dynamic component resolution without sanitization, and deploying a WAF rule on /__nuxt_island/ to block any object property named template or render in the decoded island props.

CVSS Base Scores

version 4.0
version 3.1