nuxt@3.12.3 vulnerabilities

Nuxt is a free and open-source framework with an intuitive and extendable way to create type-safe, performant and production-grade full-stack web applications and websites with Vue.js.

Direct Vulnerabilities

Known vulnerabilities in the nuxt package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Remote Code Execution (RCE)

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.

How to fix Remote Code Execution (RCE)?

Upgrade nuxt to version 3.12.4 or higher.

>=3.4.0 <3.12.4
  • M
Cross-site Scripting (XSS)

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) due to improper handling of URL inputs in the navigateTo function. An attacker can execute arbitrary script code by inserting specially crafted payloads into the URL that bypass the protocol checks.

Note

This is only exploitable if server-side rendering (SSR) has occurred; the javascript: protocol within a location header does not trigger XSS.

How to fix Cross-site Scripting (XSS)?

Upgrade nuxt to version 3.12.4 or higher.

<3.12.4