vite allows server.fs.deny bypass via backslash on Windows
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-22 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| vitejs | vite | 7.1.0 to before 7.1.11; 7.0.0 to before 7.0.8; 6.0.0 to before 6.4.1; 5.2.6 to before 5.4.21; 4.5.3 to before 5.0.0; 3.2.9 to before 4.0.0; 2.9.18 to before 3.0.0 | 7.1.11, 7.0.8, 6.4.1, 5.4.21, 5.0.0, 4.0.0, 3.0.0 | Patch available | CNA |
| — | vite (npm) | 7.1.0 to before 7.1.11 | 7.1.11 | Patch available | GHSA-93m4-6634-74q7 |
| — | vite (npm) | 7.0.0 to before 7.0.8 | 7.0.8 | Patch available | GHSA-93m4-6634-74q7 |
| — | vite (npm) | 6.0.0 to before 6.4.1 | 6.4.1 | Patch available | GHSA-93m4-6634-74q7 |
| — | vite (npm) | 2.9.18 to before 5.4.21 | 5.4.21 | Patch available | GHSA-93m4-6634-74q7 |
| — | vite (npm) | 3.2.9 to before 5.4.21 | 5.4.21 | Patch available | GHSA-93m4-6634-74q7 |
| — | vite (npm) | 4.5.3 to before 5.4.21 | 5.4.21 | Patch available | GHSA-93m4-6634-74q7 |
| — | vite (npm) | 5.2.6 to before 5.4.21 | 5.4.21 | Patch available | GHSA-93m4-6634-74q7 |
- vite Vendorvitejs Affected 7.1.0 to before 7.1.11; 7.0.0 to before 7.0.8; 6.0.0 to before 6.4.1; 5.2.6 to before 5.4.21; 4.5.3 to before 5.0.0; 3.2.9 to before 4.0.0; 2.9.18 to before 3.0.0 Fixed in 7.1.11, 7.0.8, 6.4.1, 5.4.21, 5.0.0, 4.0.0, 3.0.0 Patch available CNA
- vite (npm) Vendor— Affected 7.1.0 to before 7.1.11 Fixed in 7.1.11 Patch available GHSA-93m4-6634-74q7
- vite (npm) Vendor— Affected 7.0.0 to before 7.0.8 Fixed in 7.0.8 Patch available GHSA-93m4-6634-74q7
- vite (npm) Vendor— Affected 6.0.0 to before 6.4.1 Fixed in 6.4.1 Patch available GHSA-93m4-6634-74q7
- vite (npm) Vendor— Affected 2.9.18 to before 5.4.21 Fixed in 5.4.21 Patch available GHSA-93m4-6634-74q7
- vite (npm) Vendor— Affected 3.2.9 to before 5.4.21 Fixed in 5.4.21 Patch available GHSA-93m4-6634-74q7
- vite (npm) Vendor— Affected 4.5.3 to before 5.4.21 Fixed in 5.4.21 Patch available GHSA-93m4-6634-74q7
- vite (npm) Vendor— Affected 5.2.6 to before 5.4.21 Fixed in 5.4.21 Patch available GHSA-93m4-6634-74q7
Remediation
- Fix · CNA vite (vitejs) Fixed in 7.1.11, 7.0.8, 6.4.1, 5.4.21, 5.0.0, 4.0.0, 3.0.0
- Fix · GHSA-93m4-6634-74q7 vite (npm) Fixed in 7.1.11 Advisory →
- Fix · GHSA-93m4-6634-74q7 vite (npm) Fixed in 7.0.8 Advisory →
- Fix · GHSA-93m4-6634-74q7 vite (npm) Fixed in 6.4.1 Advisory →
- Fix · GHSA-93m4-6634-74q7 vite (npm) Fixed in 5.4.21 Advisory →
- Fix · GHSA-93m4-6634-74q7 vite (npm) Fixed in 5.4.21 Advisory →
- Fix · GHSA-93m4-6634-74q7 vite (npm) Fixed in 5.4.21 Advisory →
- Fix · GHSA-93m4-6634-74q7 vite (npm) Fixed in 5.4.21 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
Not affected: 4 products
- Red Hat Ansible Automation Platform 2
- Red Hat JBoss Enterprise Application Platform 8
- Red Hat JBoss Enterprise Application Platform Expansion Pack
- Red Hat OpenShift Dev Spaces
Timeline
- 2026-10-02 Threatist record created from CVE-2025-62522
- 2026-10-03 Alias added: GHSA-93m4-6634-74q7
References
More vitejs vulnerabilities
- TI-2025-22386 Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query KEVCVSS 3.1HIGH 7.5
- TI-2025-41248 Code injection in vitejs vite-plugin-react CVSS 3.1CRITICAL 9.8
- TI-2026-28350 Vite Affected by Arbitrary File Read via Vite Dev Server WebSocket CVSS 4.0HIGH 8.2
- TI-2025-41735 @vitejs/plugin-rsc has Arbitrary File Read via `/__vite_rsc_findSourceMapURL` Endpoint on Development CVSS 3.1HIGH 7.5
- TI-2025-21544 Vite bypasses server.fs.deny when using `?raw??` CVSS 3.1HIGH 7.5
- TI-2023-16938 Vite Server Options (server.fs.deny) can be bypassed using double forward-slash (//) CVSS 3.1HIGH 7.5
Sources
- CVE-2025-62522 · CVE Program
- CVE-2025-62522 · NVD
- FIRST EPSS
- GHSA-93m4-6634-74q7 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-62522 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences