Summary
CVE-2023-54418 is an unauthenticated arbitrary file read vulnerability in Nuxt versions 3.0.0-rc.1 through 3.0.0-rc.12. A remote attacker can read sensitive files from the server, such as /etc/passwd. The CVE record rates it High (CVSS v4.0 score 8.7), and it has been observed exploited in the wild.
Technical details
- Root cause: The Vite dev server default setting
vite.server.fs.strict=falselets the dev server serve files outside the project root (CWE-552, files or directories accessible to external parties). - Trigger conditions: The affected Nuxt version must be running with the Vite dev server reachable by the attacker.
- Attack vector: The attacker sends an unauthenticated network request to
/_nuxt/@fs/<absolute path>with raw query parameters. - Impact: Disclosure of arbitrary file contents readable by the server process, with no effect on integrity or availability.
- Exploitation: The CVE record states that the Shadowserver Foundation first observed exploitation on October 18, 2023.
Affected software
- Nuxt 3.0.0-rc.1 through 3.0.0-rc.12 (versions before 3.0.0-rc.13)
Severity
- CVSS v4.0 base score 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 base score 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.0.0-rc.13 or later.
- If you cannot upgrade immediately, make sure no Nuxt development server is reachable from untrusted networks. This workaround is general hardening and is not taken from the advisory.
- Review web and access logs for requests to
/_nuxt/@fs/paths.

