Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-fx2h-pf6j-xcff

Опубликовано: 15 июн. 2026
Источник: github
Github: Прошло ревью
CVSS4: 8.2

Описание

vite: server.fs.deny bypass on Windows alternate paths

Summary

The contents of files that are specified by 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)
  • the sensitive file exists in the allowed directories specified by 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

$ npm create vite@latest $ cd vite-project/ $ npm install $ npm run dev

Access via browser at http://localhost:5173/.env::$DATA?raw deecc1315123883cfd0f9c26a002845a

Example expected result:

  • /.env::$DATA?raw returns the contents of .env
  • /tls.pem::$DATA?raw returns the contents of tls.pem

Пакеты

Наименование

vite

npm
Затронутые версииВерсия исправления

>= 8.0.0, <= 8.0.15

8.0.16

Наименование

vite

npm
Затронутые версииВерсия исправления

>= 7.0.0, <= 7.3.4

7.3.5

Наименование

vite

npm
Затронутые версииВерсия исправления

<= 6.4.2

6.4.3

Наименование

vite-plus

npm
Затронутые версииВерсия исправления

<= 0.1.23

0.1.24

EPSS

Процентиль: 31%
0.00393
Низкий

8.2 High

CVSS4

Дефекты

CWE-200
CWE-22

Связанные уязвимости

CVSS3: 7.5
nvd
около 1 месяца назад

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.

CVSS3: 7.5
debian
около 1 месяца назад

Vite is a frontend tooling framework for JavaScript. Prior to 8.0.16, ...

EPSS

Процентиль: 31%
0.00393
Низкий

8.2 High

CVSS4

Дефекты

CWE-200
CWE-22