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

exploitDog

github логотип

GHSA-v2wj-q39q-566r

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

Описание

Vite: server.fs.deny bypassed with queries

Summary

The contents of files that are specified by server.fs.deny can be returned to the browser.

Impact

Only apps that match the following conditions are affected:

Details

On the Vite dev server, files that should be blocked by server.fs.deny (e.g., .env, *.crt) can be retrieved with HTTP 200 responses when query parameters such as ?raw, ?import&raw, or ?import&url&inline are appended.

PoC

  1. Start the dev server: pnpm exec vite root --host 127.0.0.1 --port 5175 --strictPort
  2. Confirm that server.fs.deny is enforced (expect 403): curl -i http://127.0.0.1:5175/src/.env | head -n 20 image
  3. Confirm that the same files can be retrieved with query parameters (expect 200): image

Пакеты

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

vite

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

>= 8.0.0, <= 8.0.4

8.0.5

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

vite

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

>= 7.1.0, <= 7.3.1

7.3.2

EPSS

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

8.2 High

CVSS4

Дефекты

CWE-180
CWE-284

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

CVSS3: 7.5
redhat
4 месяца назад

Vite is a frontend tooling framework for JavaScript. From 7.1.0 to before 7.3.2 and 8.0.5, on the Vite dev server, files that should be blocked by server.fs.deny (e.g., .env, *.crt) can be retrieved with HTTP 200 responses when query parameters such as ?raw, ?import&raw, or ?import&url&inline are appended. This vulnerability is fixed in 7.3.2 and 8.0.5.

CVSS3: 7.5
nvd
4 месяца назад

Vite is a frontend tooling framework for JavaScript. From 7.1.0 to before 7.3.2 and 8.0.5, on the Vite dev server, files that should be blocked by server.fs.deny (e.g., .env, *.crt) can be retrieved with HTTP 200 responses when query parameters such as ?raw, ?import&raw, or ?import&url&inline are appended. This vulnerability is fixed in 7.3.2 and 8.0.5.

CVSS3: 7.5
debian
4 месяца назад

Vite is a frontend tooling framework for JavaScript. From 7.1.0 to bef ...

EPSS

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

8.2 High

CVSS4

Дефекты

CWE-180
CWE-284