CVE-2025-62522 Details
Description
Vite is a frontend tooling framework for JavaScript. In versions from 2.9.18 to before 3.0.0, 3.2.9 to before 4.0.0, 4.5.3 to before 5.0.0, 5.2.6 to before 5.4.21, 6.0.0 to before 6.4.1, 7.0.0 to before 7.0.8, and 7.1.0 to before 7.1.11, files denied by server.fs.deny were sent if the URL ended with \ when the dev server is running on Windows. Only apps explicitly exposing the Vite dev server to the network and running the dev server on Windows were affected. This issue has been patched in versions 5.4.21, 6.4.1, 7.0.8, and 7.1.11.
A vulnerability in Vite allows files denied by the server.fs.deny option to be accessed when the development server is running on Windows. This issue affects Vite versions 2.9.18 prior to 3.0.0, 3.2.9 prior to 4.0.0, 4.5.3 prior to 5.0.0, 5.2.6 prior to 5.4.21, 6.0.0 prior to 6.4.1, 7.0.0 prior to 7.0.8, and 7.1.0 prior to 7.1.11. The vulnerability arises because the server.fs.deny option, which is meant to restrict access to certain files, can be bypassed by appending a backslash to the file name in the request URL. This behavior occurs because the file loading mechanism does not properly handle trailing slashes, allowing denied files to be served instead.
Users can update to Vite versions 5.4.21, 6.4.1, 7.0.8, or 7.1.11 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.
Volerion
Assessed Oct 20, 2025CISA-ADP
Assessed Oct 20, 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/commit/f479cc57c425ed41ceb434fecebd63931b1ed4ed | [email protected] | Source CodeVendor |
| https://github.com/vitejs/vite/security/advisories/GHSA-93m4-6634-74q7 | [email protected] | AdvisoryExploitRemedyVendor |
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 |
|---|---|
| Vite | >= 7.1.0, <= 7.1.10 (semver) >= 7.0.0, <= 7.0.7 (semver) >= 6.0.0, <= 6.4.0 (semver) >= 2.9.18, < 3.0.0, >= 3.2.9, < 4.0.0, >= 4.5.3, < 5.0.0, >= 5.2.6, <= 5.4.20 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 8, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 20, 2025 | New CVE Received | [email protected] |
Volerion