What’s Vulnerable › Vulnerabilities
CVE-2025-62522: vite allows server.fs.deny bypass via backslash on Windows
- Severity: medium (CVSS 6.0 v4.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.1% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2025-10-20 · updated 2026-10-08
- Weakness: CWE-22
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.
Affected products
- vitejs vite: from 7.1.0, < 7.1.11; from 7.0.0, < 7.0.8; from 6.0.0, < 6.4.1; from 5.2.6, < 5.4.21; from 4.5.3, < 5.0.0; from 3.2.9, < 4.0.0
References
- https://github.com/vitejs/vite/commit/f479cc57c425ed41ceb434fecebd63931b1ed4ed
- https://github.com/vitejs/vite/security/advisories/GHSA-93m4-6634-74q7
Get alerted when CVE-2025-62522 or the next vulnerability affects your stack