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

exploitDog

github логотип

GHSA-4w7w-66w2-5vf9

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

Описание

Vite Vulnerable to Path Traversal in Optimized Deps .map Handling

Summary

Any files ending with .map even out side the project can be returned to the browser.

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)
  • have a sensitive content in files ending with .map and the path is predictable

Details

In Vite v7.3.1, the dev server’s handling of .map requests for optimized dependencies resolves file paths and calls readFile without restricting ../ segments in the URL. As a result, it is possible to bypass the server.fs.strict allow list and retrieve .map files located outside the project root, provided they can be parsed as valid source map JSON.

PoC

  1. Create a minimal PoC sourcemap outside the project root
    cat > /tmp/poc.map <<'EOF' {"version":3,"file":"x.js","sources":[],"names":[],"mappings":""} EOF
  2. Start the Vite dev server (example)
    pnpm -C playground/fs-serve dev --host 127.0.0.1 --port 18080
  3. Confirm that direct /@fs access is blocked by strict (returns 403) image
  4. Inject ../ segments under the optimized deps .map URL prefix to reach /tmp/poc.map image

Пакеты

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

vite

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

>= 8.0.0, <= 8.0.4

8.0.5

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

vite

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

>= 7.0.0, <= 7.3.1

7.3.2

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

vite

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

<= 6.4.1

6.4.2

EPSS

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

6.3 Medium

CVSS4

Дефекты

CWE-200
CWE-22

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

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

Vite is a frontend tooling framework for JavaScript. From 6.0.0 to before 6.4.2, 7.3.2, and 8.0.5, the dev server’s handling of .map requests for optimized dependencies resolves file paths and calls readFile without restricting ../ segments in the URL. As a result, it is possible to bypass the server.fs.strict allow list and retrieve .map files located outside the project root, provided they can be parsed as valid source map JSON. This vulnerability is fixed in 6.4.2, 7.3.2, and 8.0.5.

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

Vite is a frontend tooling framework for JavaScript. From 6.0.0 to before 6.4.2, 7.3.2, and 8.0.5, the dev server’s handling of .map requests for optimized dependencies resolves file paths and calls readFile without restricting ../ segments in the URL. As a result, it is possible to bypass the server.fs.strict allow list and retrieve .map files located outside the project root, provided they can be parsed as valid source map JSON. This vulnerability is fixed in 6.4.2, 7.3.2, and 8.0.5.

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

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

CVSS3: 5.3
fstec
4 месяца назад

Уязвимость локального сервера разработки приложений Vite и Vite+, связанная с неверным ограничением имени пути к каталогу, позволяющая нарушителю раскрыть защищаемую информацию

EPSS

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

6.3 Medium

CVSS4

Дефекты

CWE-200
CWE-22