CVE-2025-46565
Last modified
CVE-2025-46565 is a medium-severity vulnerability rated 6/10 on the CVSS scale. 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. EPSS estimates a 1.08% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
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
Weakness Enumeration
Affected Software
| 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 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-46565?
How severe is CVE-2025-46565?
How do I fix CVE-2025-46565?
Are you affected by CVE-2025-46565?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
