Remote Code Execution (RCE) Affecting nuxt package, versions >=3.4.0 <3.12.4


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.11% (46th 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 Learn

Learn about Remote Code Execution (RCE) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-NUXT-7640974
  • published6 Aug 2024
  • disclosed5 Aug 2024
  • creditRy0taK

Introduced: 5 Aug 2024

CVE-2024-34344  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade nuxt to version 3.12.4 or higher.

Overview

Affected versions of this package are vulnerable to Remote Code Execution (RCE) due to 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 when the victim opens a malicious web page in the browser while running the test locally.

Note:

This vulnerability affects only users who open a malicious web page in the browser while running the test locally.

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.

CVSS Scores

version 4.0
version 3.1