CVE-2026-53571: vite `server.fs.deny` Bypass On Windows Alternate Vulnerability

HIGH
Advisory Identifier: GHSA-fx2h-pf6j-xcff
CVSS 7.5
CWE-200 CWE-22
Published
Advisory Summary

CVE-2026-53571 is a HIGH (CVSS 7.5) `server.fs.deny` bypass on windows alternate vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting vite libraries in the npm ecosystem. The issue involves `server.fs.deny` bypass on windows alternate paths. Remediation is available by upgrading affected packages to version 8.0.16, 7.3.5, 6.4.3, 0.1.24.

CVE-2026-53571 at a Glance

CVE Identifier CVE-2026-53571
GHSA Identifier GHSA-fx2h-pf6j-xcff
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product vite
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.5

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
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-53571

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

vite fixed: 8.0.16
npm install vite@8.0.16
vite fixed: 7.3.5
npm install vite@7.3.5
vite fixed: 6.4.3
npm install vite@6.4.3
vite-plus fixed: 0.1.24
npm install vite-plus@0.1.24
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 vite

How to Check if You Are Affected

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

npm ls vite

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

Note: The npm ls vite 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In vite, 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 The contents of files that are specified by [`server.fs.deny`](https://vite.dev/config/server-options#server-fs-deny) can be returned to the browser on Windows. ### Impact Only apps that match the following conditions are affected: - explicitly exposes the Vite dev server to the network (using `--host` or [`server.host` config option](https://vitejs.dev/config/server-options.html#server-host)) - the sensitive file exists in the allowed directories specified by [`server.fs.allow`](https://vite.dev/config/server-options#server-fs-allow) - either of: - the sensitive file exists in an NTFS volume - the dev server is running on Windows and the sensitive file exists in a volume that 8.3 short name generation is enabled (it is enabled by default on system volumes) ### Details Vite’s dev server denies direct access to sensitive files through `server.fs.deny`, including entries such as `.env`, `.env.*`, and `*.{crt,pem}`. However, on Windows, the deny logic does not correctly normalize NTFS ADS path forms before access checks are applied. Because of this, requests such as `/.env::$DATA?raw` are treated as allowed paths, while Windows resolves them to the original file's default data stream. Similar to that, Windows allows accessing a file using a different name with the 8.3 short name compatibility feature. Vite did not reject accessing files via them. ### PoC ```bash $ npm create vite@latest $ cd vite-project/ $ npm install $ npm run dev ``` Access via browser at `http://localhost:5173/.env::$DATA?raw` <img width="388" height="129" alt="deecc1315123883cfd0f9c26a002845a" src="https://github.com/user-attachments/assets/895c6012-4e2e-4a35-babb-69bbf3ee7170" /> Example expected result: - `/.env::$DATA?raw` returns the contents of `.env` - `/tls.pem::$DATA?raw` returns the contents of `tls.pem`

CVE-2026-53571 Affected vite Versions

4 component(s)
Fixed Versions:
8.0.167.3.56.4.30.1.24
Product / Package Ecosystem Affected Versions Fixed Version
vite
npm
≥ 8.0.0
< 8.0.16
8.0.16
vite
npm
≥ 7.0.0
< 7.3.5
7.3.5
vite
npm
< 6.4.3
6.4.3
vite-plus
npm
< 0.1.24
0.1.24

References

Frequently Asked Questions

What is CVE-2026-53571?
CVE-2026-53571 is a security vulnerability in vite involving `server.fs.deny` bypass on Windows alternate paths under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which vite versions are affected?
Affected versions include releases prior to 8.0.16, 7.3.5, 6.4.3, 0.1.24 across affected packages: vite, vite-plus.
What version fixes CVE-2026-53571?
Upgrading to 8.0.16, 7.3.5, 6.4.3, 0.1.24 (or the latest patched release for your respective branch) resolves the vulnerability.
Is vite affected?
Yes, vite is affected in releases prior to 8.0.16, 7.3.5, 6.4.3. Upgrade your dependency to 8.0.16, 7.3.5, 6.4.3 or later.
Is vite-plus affected?
Yes, vite-plus is affected in releases prior to 0.1.24. Upgrade your dependency to 0.1.24 or later.
What is the CVSS score of CVE-2026-53571?
CVE-2026-53571 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2026-53571?
CVE-2026-53571 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check npm dependencies for CVE-2026-53571?
Run the dependency tree command: 'npm ls vite'. 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-fx2h-pf6j-xcff",
  "modified" : "2026-07-15T22:05:52Z",
  "published" : "2026-06-15T17:17:45Z",
  "aliases" : [ "CVE-2026-53571" ],
  "summary" : "vite: `server.fs.deny` bypass on Windows alternate paths",
  "details" : "### Summary\n\nThe contents of files that are specified by [`server.fs.deny`](https://vite.dev/config/server-options#server-fs-deny) can be returned to the browser on Windows.\n\n### Impact\n\nOnly apps that match the following conditions are affected:\n\n- explicitly exposes the Vite dev server to the network (using `--host` or [`server.host` config option](https://vitejs.dev/config/server-options.html#server-host))\n- the sensitive file exists in the allowed directories specified by [`server.fs.allow`](https://vite.dev/config/server-options#server-fs-allow)\n- either of:\n  - the sensitive file exists in an NTFS volume\n  - the dev server is running on Windows and the sensitive file exists in a volume that 8.3 short name generation is enabled (it is enabled by default on system volumes)\n\n### Details\n\nVite’s dev server denies direct access to sensitive files through `server.fs.deny`, including entries such as `.env`, `.env.*`, and `*.{crt,pem}`. However, on Windows, the deny logic does not correctly normalize NTFS ADS path forms before access checks are applied.\nBecause of this, requests such as `/.env::$DATA?raw` are treated as allowed paths, while Windows resolves them to the original file's default data stream.\n\nSimilar to that, Windows allows accessing a file using a different name with the 8.3 short name compatibility feature. Vite did not reject accessing files via them.\n\n### PoC\n```bash\n$ npm create vite@latest\n$ cd vite-project/\n$ npm install\n$ npm run dev\n```\nAccess via browser at `http://localhost:5173/.env::$DATA?raw`\n<img width=\"388\" height=\"129\" alt=\"deecc1315123883cfd0f9c26a002845a\" src=\"https://github.com/user-attachments/assets/895c6012-4e2e-4a35-babb-69bbf3ee7170\" />\n\nExample expected result:\n- `/.env::$DATA?raw` returns the contents of `.env`\n- `/tls.pem::$DATA?raw` returns the contents of `tls.pem`",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "vite"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "8.0.16"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 8.0.15"
    }
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "vite"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.3.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 7.3.4"
    }
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "vite"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.4.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 6.4.2"
    }
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "vite-plus"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.1.24"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.1.23"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/vitejs/vite/security/advisories/GHSA-fx2h-pf6j-xcff"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-53571"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/vitejs/vite"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-22" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-15T17:17:45Z",
    "nvd_published_at" : "2026-06-22T18:16:44Z"
  }
}