Vite Server Options (server.fs.deny) can be bypassed using double forward-slash (//)
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-200.
Summary
Vite provides frontend tooling. Prior to versions 2.9.16, 3.2.7, 4.0.5, 4.1.5, 4.2.3, and 4.3.9, Vite Server Options (`server.fs.deny`) can be bypassed using double forward-slash (//) allows any unauthenticated user to read file from the Vite root-path of the application including the default `fs.deny` settings (`['.env', '.env.*', '*.{crt,pem}']`). Only users explicitly exposing the Vite dev server to the network (using `--host` or `server.host` config option) are affected, and only files in the immediate Vite project root folder could be exposed. This issue is fixed in [email protected], [email protected], [email protected], [email protected], [email protected], and [email protected].
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- 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 | before 2.9.16; 3.0.2 to before 3.2.7; 4.0.0 to before 4.0.5; 4.1.0 to before 4.1.5; 4.2.0 to before 4.2.3; 4.3.0 to before 4.3.9 | 2.9.16, 3.2.7, 4.0.5, 4.1.5, 4.2.3, 4.3.9 | Patch available | CNA |
| — | vite (npm) | before 2.9.16 | 2.9.16 | Patch available | GHSA-353f-5xf4-qw67 |
| — | vite (npm) | 3.0.2 to before 3.2.7 | 3.2.7 | Patch available | GHSA-353f-5xf4-qw67 |
| — | vite (npm) | 4.0.0 to before 4.0.5 | 4.0.5 | Patch available | GHSA-353f-5xf4-qw67 |
| — | vite (npm) | 4.1.0 to before 4.1.5 | 4.1.5 | Patch available | GHSA-353f-5xf4-qw67 |
| — | vite (npm) | 4.2.0 to before 4.2.3 | 4.2.3 | Patch available | GHSA-353f-5xf4-qw67 |
| — | vite (npm) | 4.3.0 to before 4.3.9 | 4.3.9 | Patch available | GHSA-353f-5xf4-qw67 |
- vite Vendorvitejs Affected before 2.9.16; 3.0.2 to before 3.2.7; 4.0.0 to before 4.0.5; 4.1.0 to before 4.1.5; 4.2.0 to before 4.2.3; 4.3.0 to before 4.3.9 Fixed in 2.9.16, 3.2.7, 4.0.5, 4.1.5, 4.2.3, 4.3.9 Patch available CNA
- vite (npm) Vendor— Affected before 2.9.16 Fixed in 2.9.16 Patch available GHSA-353f-5xf4-qw67
- vite (npm) Vendor— Affected 3.0.2 to before 3.2.7 Fixed in 3.2.7 Patch available GHSA-353f-5xf4-qw67
- vite (npm) Vendor— Affected 4.0.0 to before 4.0.5 Fixed in 4.0.5 Patch available GHSA-353f-5xf4-qw67
- vite (npm) Vendor— Affected 4.1.0 to before 4.1.5 Fixed in 4.1.5 Patch available GHSA-353f-5xf4-qw67
- vite (npm) Vendor— Affected 4.2.0 to before 4.2.3 Fixed in 4.2.3 Patch available GHSA-353f-5xf4-qw67
- vite (npm) Vendor— Affected 4.3.0 to before 4.3.9 Fixed in 4.3.9 Patch available GHSA-353f-5xf4-qw67
Remediation
- Fix · CNA vite (vitejs) Fixed in 2.9.16, 3.2.7, 4.0.5, 4.1.5, 4.2.3, 4.3.9
- Fix · GHSA-353f-5xf4-qw67 vite (npm) Fixed in 2.9.16 Advisory →
- Fix · GHSA-353f-5xf4-qw67 vite (npm) Fixed in 3.2.7 Advisory →
- Fix · GHSA-353f-5xf4-qw67 vite (npm) Fixed in 4.0.5 Advisory →
- Fix · GHSA-353f-5xf4-qw67 vite (npm) Fixed in 4.1.5 Advisory →
- Fix · GHSA-353f-5xf4-qw67 vite (npm) Fixed in 4.2.3 Advisory →
- Fix · GHSA-353f-5xf4-qw67 vite (npm) Fixed in 4.3.9 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-34092
- 2026-10-03 Alias added: GHSA-353f-5xf4-qw67
References
More vitejs Vite vulnerabilities
- TI-2025-22386 Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query KEVCVSS 3.1HIGH 7.5
- TI-2026-28350 Vite Affected by Arbitrary File Read via Vite Dev Server WebSocket CVSS 4.0HIGH 8.2
- TI-2025-21544 Vite bypasses server.fs.deny when using `?raw??` CVSS 3.1HIGH 7.5
- TI-2026-38634 Vite: `server.fs.deny` bypass on Windows alternate paths CVSS 4.0HIGH 8.2
- TI-2026-28352 Vite has a Path Traversal in Optimized Deps `.map` Handling CVSS 4.0MEDIUM 6.3
- TI-2026-28351 Vite has a `server.fs.deny` bypass with queries CVSS 4.0HIGH 8.2
Sources
- CVE-2023-34092 · CVE Program
- CVE-2023-34092 · NVD
- FIRST EPSS
- GHSA-353f-5xf4-qw67 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences