Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. nuxt
  4. ›
  5. CVE-2024-34344

CVE-2024-34344: Nuxt vulnerable to remote code execution via the browser when running the test locally

August 5, 2024 (updated November 18, 2024)

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.

References

  • github.com/advisories/GHSA-v784-fjjh-f8r4
  • github.com/nuxt/nuxt
  • github.com/nuxt/nuxt/blob/4779f5906fa4d3c784c2e2d6fe5a5c5f181faaec/packages/nuxt/src/app/components/test-component-wrapper.ts
  • github.com/nuxt/nuxt/blob/4779f5906fa4d3c784c2e2d6fe5a5c5f181faaec/packages/nuxt/src/app/components/test-component-wrapper.ts
  • github.com/nuxt/nuxt/security/advisories/GHSA-v784-fjjh-f8r4
  • nvd.nist.gov/vuln/detail/CVE-2024-34344

Code Behaviors & Features

Detect and mitigate CVE-2024-34344 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.4.0 before 3.12.4

Fixed versions

  • 3.12.4

Solution

Upgrade to version 3.12.4 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-706: Use of Incorrectly-Resolved Name or Reference
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

npm/nuxt/CVE-2024-34344.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:41 +0000.