CVE-2025-46565Vitejs Vite
Medium 6.0 No auth needed
Follow: this CVE · Vitejs · Vitejs Vite We alert you by email or Slack (account required).
- Priority
- 51
- CVSS 4.0
- 6.0
- EPSS
- —
- Auth required
- No
- Published
- May 1, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
Vite is a frontend tooling framework for javascript. Prior to versions 6.3.4, 6.2.7, 6.1.6, 5.4.19, and 4.5.14, the contents of files in the project root that are denied by a file matching pattern can be returned to the browser. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected. Only files that are under project root and are denied by a file matching pattern can be bypassed. `server.fs.deny` can contain patterns matching against files (by default it includes .env, .env.*, *.{crt,pem} as such patterns). These patterns were able to bypass for files under `root` by using a combination of slash and dot (/.). This issue has been patched in versions 6.3.4, 6.2.7, 6.1.6, 5.4.19, and 4.5.14.
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 |
≥ 6.3.0 < 6.3.4 |
6.3.4 |
npm install vite@6.3.4 |
| npm | vite |
≥ 6.2.0 < 6.2.7 |
6.2.7 |
npm install vite@6.2.7 |
| npm | vite |
≥ 6.0.0 < 6.1.6 |
6.1.6 |
npm install vite@6.1.6 |
| npm | vite |
≥ 5.0.0 < 5.4.19 |
5.4.19 |
npm install vite@5.4.19 |
| npm | vite |
< 4.5.14 |
4.5.14 |
npm install vite@4.5.14 |
Per OSV / GitHub Advisories (GHSA-859w-5945-r5v3). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| vitejs | vite | < 4.5.14 |
| vitejs | vite | ≥ 5.0.0 < 5.4.19 |
| vitejs | vite | ≥ 6.0.0 < 6.1.6 |
| vitejs | vite | ≥ 6.2.0 < 6.2.7 |
| vitejs | vite | ≥ 6.3.0 < 6.3.4 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Exploit Vendor Advisory