CVE-2025-46565 Details
Description
Vite is a frontend tooling framework for javascript. Prior to versions 6.3.4, 6.2.7, 6.1.6, 5.4.19, and 4.5.14, the contents of files in the project root that are denied by a file matching pattern can be returned to the browser. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected. Only files that are under project root and are denied by a file matching pattern can be bypassed. `server.fs.deny` can contain patterns matching against files (by default it includes .env, .env.*, *.{crt,pem} as such patterns). These patterns were able to bypass for files under `root` by using a combination of slash and dot (/.). This issue has been patched in versions 6.3.4, 6.2.7, 6.1.6, 5.4.19, and 4.5.14.
A vulnerability in Vite, a frontend tooling framework for JavaScript, allows files in the project root that are denied by a file matching pattern to be served to the browser. This issue affects Vite versions 6.3.0 through 6.3.3, 6.2.0 through 6.2.6, 6.0.0 through 6.1.5, 5.0.0 through 5.4.18, and 4.5.13 and prior. The vulnerability arises when the Vite development server is exposed to the network, either by using the '--host' option or by configuring 'server.host' to allow network access. Under these conditions, files that are typically restricted by default patterns in 'server.fs.deny' can be accessed by exploiting the way these patterns are applied, particularly through the use of a combination of slashes and dots to bypass the restrictions.
Users can update to Vite versions 6.3.4, 6.2.7, 6.1.6, 5.4.19, or 4.5.14 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 2, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/vitejs/vite/security/advisories/GHSA-859w-5945-r5v3 | CISA-ADP | ExploitVendor Advisory |
| https://github.com/vitejs/vite/commit/c22c43de612eebb6c182dd67850c24e4fab8cacb | [email protected] | Patch |
| https://github.com/vitejs/vite/security/advisories/GHSA-859w-5945-r5v3 | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| vitejs vite | < 4.5.14 >= 5.0.0, < 5.4.19 >= 6.0.0, < 6.1.6 >= 6.2.0, < 6.2.7 >= 6.3.0, < 6.3.4 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 2, 2025 | Initial Analysis | [email protected] |
| May 2, 2025 | CVE Modified | CISA-ADP |
| May 1, 2025 | New CVE Received | [email protected] |