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 package | Versions | Reported 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.4 | CVE List, NVD |
| vitejs vite-plus | < 0.1.16 | CVE List |
| ansible-automation-platform-tech-preview/mcp-server-rhel9 | Not specified Not affected: from 1779783248 before * | CVE List |
| rhacs-eng/release-main | Not specified | CVE List |
| automation-controller | Not specified | CVE List |
| automation-eda-controller | Not specified | CVE List |
| automation-gateway | Not specified | CVE List |
| automation-platform-ui | Not specified | CVE List |
| redhat-user-workloads/gateway-rhel9 | Not specified | CVE List |
| vite | Not specified | CVE List |
| podman-desktop-macos-1-0 | Not specified | CVE List |
| podman-desktop-windows-1-0 | Not specified | CVE List |
| redhat-user-workloads/bootc-ext | Not specified | CVE List |
| redhat-user-workloads/openshift-local-ext | Not specified | CVE List |
| redhat-user-workloads/rhel-ext | Not specified | CVE List |
| redhat-user-workloads/art-images | Not specified | CVE List |
| vite (npm) | from 8.0.0 before 8.0.5, from 7.1.0 before 7.3.2 | GitHub Advisory Database |
| voidzero vite+ | up to 0.1.15 | NVD |
All scores
| GitHub_M | 8.2high CVSS:4.0 | 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 |
| redhat-SADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | high CVSS:4.0 | 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 |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
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:
- explicitly exposes the Vite dev server to the network (using
--hostorserver.hostconfig option) - the sensitive file exists in the allowed directories specified by
server.fs.allow - the sensitive file is denied with a pattern that matches a file by
server.fs.deny
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
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-39364 changed 2026-08-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-v2wj-q39q-566r changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-39364 changed 2026-08-04 | Public domain |