CVE-2026-39364
Received
Received - Intake
Directory Traversal in Vite Dev Server Allows Unauthorized File Access
Publication date: 2026-04-07
Last updated on: 2026-04-30
Assigner: GitHub, Inc.
Description
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.
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| vitejs | vite | From 7.0.0 (inc) to 7.3.1 (inc) |
| vitejs | vite | From 8.0.0 (inc) to 8.0.4 (inc) |
| voidzero | vite+ | to 0.1.15 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-180 | The product validates input before it is canonicalized, which prevents the product from detecting data that becomes invalid after the canonicalization step. |
| CWE-284 | The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. |