Vulnerability · Published Apr 7, 2026 · Assigned by GitHub_M
CVE-2026-39364Vite has a `server.fs.deny` bypass with queries
High 7.5
In plain English
A high-severity improper access control in vite from vitejs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 2.3% (higher than 83% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei. Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | vite | 8.0.5 | GHSA-v2wj-q39q-566r |
| npm | vite | 7.3.2 | GHSA-v2wj-q39q-566r |
Affected products (as reported)
Weakness: CWE-180, CWE-284, CWE-472 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/vitejs/vite/security/advisories/GHSA-v2wj-q39q-566r x_refsource_CONFIRM
- https://access.redhat.com/security/cve/CVE-2026-39364 vdb-entry, x_refsource_REDHAT
- RHBZ#2456181 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-39364.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:24866 vendor-advisory, x_refsource_REDHAT