CVE-2026-39364
JSON

8.2high

Vite has a `server.fs.deny` bypass with queries

Severity
8.2high CVSS:4.0 by GitHub_M
Exploit likelihood
2.31% (higher than 83% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-v2wj-q39q-566r

Description

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.

Affected

Product or packageVersionsReported by
vitejs vite>= 8.0.0, < 8.0.5, >= 7.1.0, < 7.3.2, from 7.0.0 up to 7.3.1, from 8.0.0 up to 8.0.4CVE List, NVD
vitejs vite-plus< 0.1.16CVE List
ansible-automation-platform-tech-preview/mcp-server-rhel9Not specified
Not affected: from 1779783248 before *
CVE List
rhacs-eng/release-mainNot specifiedCVE List
automation-controllerNot specifiedCVE List
automation-eda-controllerNot specifiedCVE List
automation-gatewayNot specifiedCVE List
automation-platform-uiNot specifiedCVE List
redhat-user-workloads/gateway-rhel9Not specifiedCVE List
viteNot specifiedCVE List
podman-desktop-macos-1-0Not specifiedCVE List
podman-desktop-windows-1-0Not specifiedCVE List

All scores

GitHub_M8.2high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
redhat-SADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-180CWE-284CWE-472

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
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
NVD (es)

Vite es un framework de herramientas de frontend para JavaScript. Desde 7.1.0 hasta antes de 7.3.2 y 8.0.5, en el servidor de desarrollo de Vite, los archivos que deberían ser bloqueados por server.fs.deny (por ejemplo, .env, *.crt) pueden ser recuperados con respuestas HTTP 200 cuando se añaden parámetros de consulta como ?raw, ?import&raw, o ?import&url&inline. Esta vulnerabilidad está corregida en 7.3.2 y 8.0.5.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-39364 changed 2026-08-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-v2wj-q39q-566r changed 2026-09-10CC-BY-4.0
NVDCVE-2026-39364 changed 2026-08-04Public domain