CVE-2026-128070: Nuxt dev server serves files from a parent directory with a stray lockfile or workspace file
Published 2026-11-13 · Updated 2026-11-13 · Also known as GHSA-mjrq-cffv-q4qc
Summary
Nuxt incorrectly identifies parent directories as workspace roots due to the presence of stray configuration or lockfiles, enabling unauthorized file access via the Vite dev server. Developers using affected versions of @nuxt/schema should update to version 4.6.4 or explicitly define their workspace directory.
Who is affected
This vulnerability only affects the Nuxt development server and is not present in production builds. Exploitation requires specific environmental conditions, such as the existence of a stray lockfile or configuration file in a parent directory and the dev server being exposed to an untrusted network.
Exploitability
The vulnerability carries a CVSS 3.1 base score of 5.9, reflecting a medium severity risk with low complexity for network-based attacks. The low EPSS score of 0.004 indicates a low current probability of widespread exploitation, and it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Update @nuxt/schema to version 4.6.4 or later.
- Explicitly set the 'workspaceDir' in 'nuxt.config.ts' to the project root.
- Remove unnecessary lockfiles or configuration files from parent directories.
- Avoid exposing the development server to untrusted networks or the public internet.
How to check your project
- Check package.json or lockfiles to verify if @nuxt/schema version 3.5.0 through 4.6.3 is in use.
- Inspect parent directory trees for unexpected presence of lockfiles (e.g., package-lock.json) or configuration files (e.g., pnpm-workspace.yaml) that may trigger the improper workspace detection.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| npm | @nuxt/schema |
>= 3.5.0, < 4.6.4 | 4.6.4 | npm install @nuxt/[email protected] |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
| Attack vector | Network |
|---|---|
| Attack complexity | High |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | High |
| Integrity | None |
| Availability | None |
FAQ
Does this affect my production deployment?
No, this vulnerability is limited to the Nuxt development server and does not impact production-built applications.
What happens if I cannot update to 4.6.4?
You should manually set 'workspaceDir' in your 'nuxt.config.ts' to point to your actual project root, ensuring the server does not improperly expand its file access scope.
Are Nuxt 3 projects supported?
No, Nuxt 3 has reached its end of life and will not receive a patch for this vulnerability.
Original advisory description
References
- WEB https://github.com/nuxt/nuxt/security/advisories/GHSA-mjrq-cffv-q4qc
- WEB https://github.com/nuxt/nuxt/commit/89d3306d1976dd52ac2e73078806a3e889cbb8bd
- PACKAGE https://github.com/nuxt/nuxt
- WEB https://github.com/nuxt/nuxt/releases/tag/v4.6.4
Source records: GHSA-mjrq-cffv-q4qc (OSV.dev) · EPSS by FIRST, 2026-11-21.