CVE-2025-62522
vite allows server.fs.deny bypass via backslash on Windows
Also known as GHSA-93m4-6634-74q7
Mitigation
- Upgrade vite to one of 7.1.11, 7.0.8, 6.4.1, 5.4.21 (or later in the same release line).
Who should check
- Projects that depend on npm package vite (>= 7.1.0, < 7.1.11)
- Anyone running vitejs vite >= 7.1.0, < 7.1.11; >= 7.0.0, < 7.0.8; >= 6.0.0, < 6.4.1; >= 5.2.6, < 5.4.21; >= 4.5.3, < 5.0.0; >= 3.2.9, < 4.0.0; >= 2.9.18, < 3.0.0
Vulnerability facts
- Affected
- vite >= 7.1.0, < 7.1.11
- Fixed in
- 7.1.11, 7.0.8, 6.4.1, 5.4.21
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.0 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: Passive
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 1.37% chance of exploitation in 30 days (percentile 72, 2026-11-26)
- CWE
- CWE-22
- Modified
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 and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-62522. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-62522.md Affected: vite >= 7.1.0, < 7.1.11 Fixed in: 7.1.11, 7.0.8, 6.4.1, 5.4.21 Steps: 1. Search this machine and project for vite (npm), vitejs vite: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2025-62522 being exploited?
There is no confirmed exploitation: CVE-2025-62522 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.37% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-62522?
Medium: CVSS 6.0 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2025-62522?
vite >= 7.1.0, < 7.1.11.
Is there a fix for CVE-2025-62522?
Yes. Fixed in 7.1.11, 7.0.8, 6.4.1, 5.4.21. Upgrade vite to one of 7.1.11, 7.0.8, 6.4.1, 5.4.21 (or later in the same release line).
How do I check if I'm affected by CVE-2025-62522?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.