nuxt is vulnerable to Remote Code Execution (RCE)
81
High Risk
Nuxt contains a server-side remote code execution vulnerability when vue.runtimeCompiler is enabled and a server island forwards attacker-controlled props into Vue's dynamic component resolution. An attacker can inject a malicious template property through the /__nuxt_island/ endpoint, causing the Vue runtime compiler to compile and execute arbitrary code within the Nitro server process. The vulnerability requires a non-default configuration (vue.runtimeCompiler: true) and a vulnerable server island implementation, and does not affect static deployments or the default Nuxt configuration.
You are affected if you are using a version that falls within the vulnerable range, have vue.runtimeCompiler enabled, and expose a server island that forwards attacker-controlled props into dynamic component resolution. Static deployments and the default Nuxt configuration are not affected.
nuxt is vulnerable to Remote Code Execution (RCE) in versions 3.4.0 - 3.21.9 and 4.0.0 - 4.5.0.
Upgrade to a patched version. If this is not possible, disable vue.runtimeCompiler, avoid passing unsanitized user-controlled props to dynamic component resolution (<component :is>, resolveDynamicComponent, h()), and optionally deploy a WAF to block malicious template or render properties in island requests as a defense-in-depth measure.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant