{"id":"CVE-2026-53571","aliases":["CVE-2026-53571","GHSA-fx2h-pf6j-xcff"],"related":[],"kind":"vulnerability","state":"published","title":"Vite: `server.fs.deny` bypass on Windows alternate paths","summary":"Vite is a frontend tooling framework for JavaScript. Prior to 8.0.16, 7.3.5, and 6.4.3, the contents of files that are specified by server.fs.deny can be returned to the browser on Windows. 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. This vulnerability is fixed in 8.0.16, 7.3.5, and 6.4.3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Vite is a frontend tooling framework for JavaScript. Prior to 8.0.16, 7.3.5, and 6.4.3, the contents of files that are specified by server.fs.deny can be returned to the browser on Windows. 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. This vulnerability is fixed in 8.0.16, 7.3.5, and 6.4.3.","source":"cvelist"},{"lang":"en","text":"### 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`","format":"markdown","source":"ghsa"},{"lang":"es","text":"Vite es un framework de herramientas de frontend para JavaScript. Antes de 8.0.16, 7.3.5 y 6.4.3, el contenido de los archivos especificados por server.fs.deny podía ser devuelto al navegador en Windows. El servidor de desarrollo de Vite deniega el acceso directo a archivos sensibles a través de server.fs.deny, incluyendo entradas como .env, .env.* y *.{crt,pem}. Sin embargo, en Windows, la lógica de denegación no normaliza correctamente las formas de ruta NTFS ADS antes de que se apliquen las comprobaciones de acceso. Debido a esto, solicitudes como /.env::$DATA?raw son tratadas como rutas permitidas, mientras que Windows las resuelve al flujo de datos predeterminado del archivo original. De manera similar, Windows permite acceder a un archivo usando un nombre diferente con la característica de compatibilidad de nombres cortos 8.3. Vite no rechazaba el acceso a archivos a través de ellos. Esta vulnerabilidad está corregida en 8.0.16, 7.3.5 y 6.4.3.","source":"nvd"}],"published":"2026-06-15T17:17:45.000Z","modified":"2026-10-27T15:15:07.885Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:H/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-22","CWE-200"],"affected":[{"ranges":[{"version":">= 8.0.0, < 8.0.16","status":"affected"},{"version":">= 7.0.0, < 7.3.5","status":"affected"},{"version":"< 6.4.3","status":"affected"}],"vendor":"vitejs","product":"vite","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"8.0.0","status":"affected","fixed":"8.0.16"}],"ecosystem":"npm","package":"vite","purl":"pkg:npm/vite","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"7.0.0","status":"affected","fixed":"7.3.5"}],"ecosystem":"npm","package":"vite","purl":"pkg:npm/vite","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"6.4.3"}],"ecosystem":"npm","package":"vite","purl":"pkg:npm/vite","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.1.24"}],"ecosystem":"npm","package":"vite-plus","purl":"pkg:npm/vite-plus","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"6.4.3"},{"status":"affected","introduced":"7.0.0","fixed":"7.3.5"},{"status":"affected","introduced":"8.0.0","fixed":"8.0.16"}],"vendor":"vitejs","product":"vite","cpe":"cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"0.1.24"}],"vendor":"voidzero","product":"vite+","cpe":"cpe:2.3:a:voidzero:vite\\+:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/vitejs/vite/security/advisories/GHSA-fx2h-pf6j-xcff","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53571","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/vitejs/vite","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-06-22T18:07:16.554Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-53571","url":"https://www.cve.org/CVERecord?id=CVE-2026-53571","licence":"CVE Terms of Use","modified":"2026-06-22T18:07:53.961Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fx2h-pf6j-xcff","url":"https://github.com/advisories/GHSA-fx2h-pf6j-xcff","licence":"CC-BY-4.0","modified":"2026-10-27T15:15:07.885Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-53571","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53571","licence":"Public domain","modified":"2026-10-25T23:10:00.167Z"}],"updatedAt":"2026-11-25T22:59:25.391Z","epss":{"score":0.00587,"percentile":0.49476,"date":"2026-12-02T12:00:21.000Z"}}