Summary
CVE-2023-54417 is a path traversal vulnerability (CWE-22) in Nuxt 3.0.0 before 3.4.2. It allows an unauthenticated remote attacker to read files from the server through the vite-node dev server middleware. It is rated High severity (CVSS v4.0 score 8.7; CVSS v3.1 score 7.5).
Technical details
- Root cause: the vite-node dev server middleware accepts an absolute file path as the
moduleId, which gives a semi-arbitrary file read. - Trigger conditions: the vulnerable Nuxt version has to be running with the vite-node dev server middleware reachable by the attacker.
- Attack vector: network. The attacker sends an unauthenticated HTTP GET request to
/__nuxt_vite_node__/module/with an absolute file path. - Impact: disclosure of the contents of files on the server, which can include sensitive system files. The CVE record lists no integrity or availability impact.
- The CVE record notes that exploitation was first observed on October 19, 2023 (Shadowserver Foundation).
Affected software
- Nuxt 3.0.0 through 3.4.1 (inclusive).
- Fixed in Nuxt 3.4.2.
Severity
- CVSS v4.0: 8.7 (High),
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - CVSS v3.1: 7.5 (High),
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Mitigation and recommended actions
- Immediate: upgrade Nuxt to 3.4.2 or later.
- No workarounds are documented in the sources reviewed. Until you can patch, do not expose Nuxt development servers to untrusted networks, for example by restricting access to
/__nuxt_vite_node__/paths at the network or proxy layer. - Review any exposed instance running an affected version for signs of requests to
/__nuxt_vite_node__/module/, and rotate any secrets that may have been readable from the host.

