CVE-2026-128070: @nuxt/schema Nuxt Dev Server Serves Files Vulnerability

MODERATE
Advisory Identifier: GHSA-mjrq-cffv-q4qc
CVSS 5.9
CWE-552
Published
Advisory Summary

CVE-2026-128070 is a MODERATE (CVSS 5.9) nuxt dev server serves files vulnerability (CWE-552: Files or Directories Accessible to External Parties) affecting @nuxt/schema libraries in the npm ecosystem. The issue involves nuxt dev server serves files from a parent directory with a stray lockfile or workspace file. Remediation is available by upgrading affected packages to version 4.6.4.

CVE-2026-128070 at a Glance

CVE Identifier CVE-2026-128070
GHSA Identifier GHSA-mjrq-cffv-q4qc
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-552: Files or Directories Accessible to External Parties
Affected Product @nuxt/schema
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-128070

To remediate this vulnerability, upgrade all affected @nuxt/schema dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@nuxt/schema fixed: 4.6.4
npm install @nuxt/schema@4.6.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @nuxt/schema

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-128070, inspect your project dependencies using npm:

npm ls @nuxt/schema

Analyze the terminal output to locate any version of @nuxt/schema in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.6.4), your application is affected.

Note: The npm ls @nuxt/schema command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-552: Files or Directories Accessible to External Parties, where the product makes files or directories accessible to unauthorized actors, even though they should not be. In @nuxt/schema, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary Nuxt can pick a parent directory that does not declare a workspace as its default `workspaceDir`: the farthest directory with a lockfile when the project is not inside a git repository, or the farthest directory with a `pnpm-workspace.yaml` or `deno.json` file, even one that only holds settings. The Vite dev server allows `/_nuxt/@fs/` requests for any file under `workspaceDir`. A stray lockfile or settings file in a parent directory, such as the home directory, therefore lets anyone who can reach the dev server read files in that directory and everything below it. ### Impact This affects the development server only; production builds are not affected. All of the following have to hold: - A parent directory contains either: - a lockfile (`package-lock.json`, `pnpm-lock.yaml`, `yarn.lock`, `bun.lock` and similar), while the project is not inside a git repository and has no workspace file (`pnpm-workspace.yaml`, `turbo.json`, `lerna.json` and similar) above it. Running `npm install` once in the home directory is enough to create one there. - a `pnpm-workspace.yaml` without a `packages` list (for example one that only holds pnpm settings such as `onlyBuiltDependencies`), or a `deno.json` or `deno.jsonc` without a `workspace` field. This applies even if the project is inside a git repository. - The dev server is reachable from the network (`nuxt dev --host`, `nuxt dev --tunnel`, a published container port, or a proxy onto the dev port). The default localhost bind limits this to local processes, which can usually read the same files directly. For example, with `~/package-lock.json` and a project at `~/projects/app` that has no `.git` directory, `nuxt dev --host` serves `GET /_nuxt/@fs/<home>/.ssh/id_ed25519` with status 200. Any file in the home directory that is not covered by Vite's `server.fs.deny` list can be read this way, including SSH keys, cloud credentials and the Nuxt DevTools auth token in `~/.nuxt/devtools/dev-auth-token.txt`. No browser is involved: a plain HTTP client is enough. A web page on another origin cannot read the response, and DNS rebinding is rejected by Vite's host check. Projects whose parent directories contain none of these files are not affected, nor are projects inside a git repository whose only lockfile is their own. Nuxt 3.5.0 and later are affected. ### Patches Fixed in `@nuxt/schema` 4.6.4, which `nuxt` 4.6.4 depends on. A parent directory now only becomes the default `workspaceDir` if it declares a workspace: a `pnpm-workspace.yaml` with `packages`, a `deno.json` or `deno.jsonc` with `workspace`, a `lerna.json`, `turbo.json` or `rush.json`, a `package.json` with `workspaces`, or a git repository. A lockfile or a settings file alone no longer widens the dev server's `server.fs.allow` list. If your monorepo root is not detected this way, set `workspaceDir` in `nuxt.config.ts`. Nuxt 3 has reached end of life and will not receive a fix. ### Workarounds Set `workspaceDir` explicitly in `nuxt.config.ts` to the project root (or to the real monorepo root), or remove the stray lockfile or settings file from the parent directory. Do not expose the dev server to untrusted networks. If the dev port was reachable from an untrusted network while this layout was in place, treat files in the parent directory as exposed and rotate credentials such as SSH keys and cloud tokens. ### Credits Nuxt thanks [@superboy-zjc](https://github.com/superboy-zjc) for the report.

CVE-2026-128070 Affected @nuxt/schema Versions

1 component(s)
Fixed Versions:
4.6.4
Product / Package Ecosystem Affected Versions Fixed Version
@nuxt/schema
npm
≥ 3.5.0
< 4.6.4
4.6.4

References

Frequently Asked Questions

What is CVE-2026-128070?
CVE-2026-128070 is a security vulnerability in @nuxt/schema involving Nuxt dev server serves files from a parent directory with a stray lockfile or workspace file under CWE-552: Files or Directories Accessible to External Parties.
Which @nuxt/schema versions are affected?
Affected versions include releases prior to 4.6.4 across affected packages: @nuxt/schema.
What version fixes CVE-2026-128070?
Upgrading to 4.6.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @nuxt/schema affected?
Yes, @nuxt/schema is affected in releases prior to 4.6.4. Upgrade your dependency to 4.6.4 or later.
What is the CVSS score of CVE-2026-128070?
CVE-2026-128070 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2026-128070?
CVE-2026-128070 is classified under CWE-552: Files or Directories Accessible to External Parties (The product makes files or directories accessible to unauthorized actors, even though they should not be.).
How can I check npm dependencies for CVE-2026-128070?
Run the dependency tree command: 'npm ls @nuxt/schema'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-mjrq-cffv-q4qc",
  "modified" : "2026-11-13T18:11:49Z",
  "published" : "2026-11-13T18:11:49Z",
  "aliases" : [ "CVE-2026-128070" ],
  "summary" : "Nuxt dev server serves files from a parent directory with a stray lockfile or workspace file",
  "details" : "### Summary\n\nNuxt can pick a parent directory that does not declare a workspace as its default `workspaceDir`: the farthest directory with a lockfile when the project is not inside a git repository, or the farthest directory with a `pnpm-workspace.yaml` or `deno.json` file, even one that only holds settings. The Vite dev server allows `/_nuxt/@fs/` requests for any file under `workspaceDir`. A stray lockfile or settings file in a parent directory, such as the home directory, therefore lets anyone who can reach the dev server read files in that directory and everything below it.\n\n### Impact\n\nThis affects the development server only; production builds are not affected. All of the following have to hold:\n\n- A parent directory contains either:\n  - a lockfile (`package-lock.json`, `pnpm-lock.yaml`, `yarn.lock`, `bun.lock` and similar), while the project is not inside a git repository and has no workspace file (`pnpm-workspace.yaml`, `turbo.json`, `lerna.json` and similar) above it. Running `npm install` once in the home directory is enough to create one there.\n  - a `pnpm-workspace.yaml` without a `packages` list (for example one that only holds pnpm settings such as `onlyBuiltDependencies`), or a `deno.json` or `deno.jsonc` without a `workspace` field. This applies even if the project is inside a git repository.\n- The dev server is reachable from the network (`nuxt dev --host`, `nuxt dev --tunnel`, a published container port, or a proxy onto the dev port). The default localhost bind limits this to local processes, which can usually read the same files directly.\n\nFor example, with `~/package-lock.json` and a project at `~/projects/app` that has no `.git` directory, `nuxt dev --host` serves `GET /_nuxt/@fs/<home>/.ssh/id_ed25519` with status 200. Any file in the home directory that is not covered by Vite's `server.fs.deny` list can be read this way, including SSH keys, cloud credentials and the Nuxt DevTools auth token in `~/.nuxt/devtools/dev-auth-token.txt`.\n\nNo browser is involved: a plain HTTP client is enough. A web page on another origin cannot read the response, and DNS rebinding is rejected by Vite's host check.\n\nProjects whose parent directories contain none of these files are not affected, nor are projects inside a git repository whose only lockfile is their own. Nuxt 3.5.0 and later are affected.\n\n### Patches\n\nFixed in `@nuxt/schema` 4.6.4, which `nuxt` 4.6.4 depends on. A parent directory now only becomes the default `workspaceDir` if it declares a workspace: a `pnpm-workspace.yaml` with `packages`, a `deno.json` or `deno.jsonc` with `workspace`, a `lerna.json`, `turbo.json` or `rush.json`, a `package.json` with `workspaces`, or a git repository. A lockfile or a settings file alone no longer widens the dev server's `server.fs.allow` list. If your monorepo root is not detected this way, set `workspaceDir` in `nuxt.config.ts`. Nuxt 3 has reached end of life and will not receive a fix.\n\n### Workarounds\n\nSet `workspaceDir` explicitly in `nuxt.config.ts` to the project root (or to the real monorepo root), or remove the stray lockfile or settings file from the parent directory. Do not expose the dev server to untrusted networks. If the dev port was reachable from an untrusted network while this layout was in place, treat files in the parent directory as exposed and rotate credentials such as SSH keys and cloud tokens.\n\n### Credits\n\nNuxt thanks [@superboy-zjc](https://github.com/superboy-zjc) for the report.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@nuxt/schema"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.5.0"
      }, {
        "fixed" : "4.6.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/nuxt/nuxt/security/advisories/GHSA-mjrq-cffv-q4qc"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nuxt/nuxt/commit/89d3306d1976dd52ac2e73078806a3e889cbb8bd"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/nuxt/nuxt"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nuxt/nuxt/releases/tag/v4.6.4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-552" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-13T18:11:49Z",
    "nvd_published_at" : null
  }
}