CVE-2024-34344 Remote code execution via the browser when running the test locally in nuxt

High 8.8 Published Updated

Attackers can execute arbitrary code on the server if a developer visits a malicious page while running local tests.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-34344?

CVE-2024-34344 is a high-severity code injection vulnerability in nuxt, published on 5 Aug 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Nuxt is a free and open-source framework to create full-stack web applications and websites with Vue.js. Due to the insufficient validation of the `path` parameter in the NuxtTestComponentWrapper, an attacker can execute arbitrary JavaScript on the server side, which allows them to execute arbitrary commands. Users who open a malicious web page in the browser while running the test locally are affected by this vulnerability, which results in the remote code execution from the malicious web page. Since web pages can send requests to arbitrary addresses, a malicious web page can repeatedly try to exploit this vulnerability, which then triggers the exploit when the test server starts.

Weakness: CWE-94

Which versions are affected by CVE-2024-34344?

2 open source packages ship an affected version, including nuxt. It affects 1 product.

PackageAffectedFixed in
nuxt npmFrom 3.4.03.12.4
nuxt npmFrom 3.4.03.12.4

Products include Nuxt Nuxt.

How do I fix CVE-2024-34344?

Upgrade nuxt to 3.12.4 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2024-34344 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-34344 exists.

Sources

Also known as GHSA-v784-fjjh-f8r4.

Is CVE-2024-34344 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free