SecurityContext

CVE-2024-23657: Nuxt Devtools - Path Traversal & Remote Code Execution

  • Cve: CVE-2024-23657
  • Name: Nuxt Devtools - Path Traversal & Remote Code Execution
  • Description: Nuxt is a free and open-source framework to create full-stack web applications and websites with Vue.js. Nuxt Devtools is missing authentication on the `getTextAssetContent` RPC function which is vulnerable to path traversal. Combined with a lack of Origin checks on the WebSocket handler, an attacker is able to interact with a locally running devtools instance and exfiltrate data abusing this vulnerability. In certain configurations an attacker could leak the devtools authentication token and then abuse other RPC functions to achieve RCE. The `getTextAssetContent` function does not check for path traversals, this could allow an attacker to read arbitrary files over the RPC WebSocket. The WebSocket server does not check the origin of the request leading to cross-site-websocket-hijacking. This may be intentional to allow certain configurations to work correctly. Nuxt Devtools authentication tokens are placed within the home directory of the current user. The malicious webpage can connect to the Devtools WebSocket, perform a directory traversal brute force to find the authentication token, then use the *authenticated* `writeStaticAssets` function to create a new Component, Nitro Handler or `app.vue` file which will run automatically as the file is changed. This vulnerability has been addressed in release version 1.3.9. All users are advised to upgrade. There are no known workarounds for this vulnerability.
  • Impact: Attackers can read arbitrary files, hijack sessions, and potentially execute remote code via malicious WebSocket connections.
  • Remediation: Upgrade to version 1.3.9 or later.
  • Vulnerability type: path_traversal
  • Vulnerability impact: information_disclosure, remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.01212
  • Epss percentile: 0.69268
  • Assignee: [email protected]
  • Published at: 2024-08-05T21:15:37Z
  • Age in days: 841
  • Modified at: 2026-06-17T07:13:19Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 6
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-23657
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

Public exploits

UrlSourceAdded date
https://github.com/nuxt/nuxt/security/advisories/GHSA-rcvg-rgf7-pppvnvd2024-08-05

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/nuxt/nuxt/security/advisories/GHSA-rcvg-rgf7-pppvExploit, Third Party Advisory
https://portswigger.net/web-security/websockets/cross-site-websocket-hijackingThird Party Advisory
https://github.com/nuxt/devtools/blob/c4f2b68281203fc3f61ffc97d9c6623fbfde46bb/packages/devtools/src/dev-auth.ts#L14Issue Tracking
https://github.com/nuxt/devtools/blob/c4f2b68281203fc3f61ffc97d9c6623fbfde46bb/packages/devtools/src/server-rpc/assets.ts#L88C48-L88C48Issue Tracking
https://github.com/nuxt/devtools/blob/c4f2b68281203fc3f61ffc97d9c6623fbfde46bb/packages/devtools/src/server-rpc/assets.ts#L96C11-L96C28Issue Tracking
https://github.com/nuxt/devtools/blob/c4f2b68281203fc3f61ffc97d9c6623fbfde46bb/packages/devtools/src/server-rpc/index.ts#L109Issue Tracking

Products

ProductAffectedPlatform boundSourcesUrl
nuxt:nuxt< 1.3.9nonvd/v1/products/nuxt/nuxt

Projects

RepositoryLink kindsIndexedUrl
nuxt/nuxtpackage, security_advisoryyes/v1/repositories/nuxt/nuxt

Index

  • Repositories: 6
  • Repositories high signal: 1
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2024-08-05
  • Remote: yes
  • Exposed hosts: 84061
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports