CVE-2023-34092Vitejs Vite
High 7.5 No auth needed
Follow: this CVE · Vitejs · Vitejs Vite We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 2.9% probability of exploitation in 30 days · percentile 88
- Auth required
- No
- Published
- Jun 1, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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 vite@4.3.9, vite@4.2.3, vite@4.1.5, vite@4.0.5, vite@3.2.7, and vite@2.9.16.
What to do
- Apply the vendor's security update for Vite.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | vite |
< 2.9.16 |
2.9.16 |
npm install vite@2.9.16 |
| npm | vite |
≥ 3.0.2 < 3.2.7 |
3.2.7 |
npm install vite@3.2.7 |
| npm | vite |
≥ 4.0.0 < 4.0.5 |
4.0.5 |
npm install vite@4.0.5 |
| npm | vite |
≥ 4.1.0 < 4.1.5 |
4.1.5 |
npm install vite@4.1.5 |
| npm | vite |
≥ 4.2.0 < 4.2.3 |
4.2.3 |
npm install vite@4.2.3 |
| npm | vite |
≥ 4.3.0 < 4.3.9 |
4.3.9 |
npm install vite@4.3.9 |
Per OSV / GitHub Advisories (GHSA-353f-5xf4-qw67). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| vitejs | vite | ≥ 3.0.2 < 3.2.7 |
| vitejs | vite | ≥ 4.0.0 < 4.0.5 |
| vitejs | vite | ≥ 4.1.0 < 4.1.5 |
| vitejs | vite | ≥ 4.2.0 < 4.2.3 |
| vitejs | vite | ≥ 4.3.0 < 4.3.9 |
| vitejs | vite | 2.9.15 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Exploit Vendor Advisory