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

    Threat Intelligence

    EPSS
    0.11% (45th 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 ID SNYK-JS-NUXT-7640974
  • published 6 Aug 2024
  • disclosed 5 Aug 2024
  • credit Ry0taK

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
Expand this section

Snyk

Recommended
8.6 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Active
  • Confidentiality (VC)
    High
  • Integrity (VI)
    High
  • Availability (VA)
    High
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None