Medium severity · published May 1, 2025
CVE-2025-46565
Vite is a frontend tooling framework for javascript
5.3
CVSS
1.2%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
Low
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.2% · higher than 69% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
VI
Vite · Vitejs
before 4.5.14; 5.0.0 before 5.4.19; 6.0.0 before 6.1.6; 6.2.0 before 6.2.7; 6.3.0 before 6.3.4 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-46565
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-46565
Patch
https://github.com/vitejs/vite/commit/c22c43de612eebb6c182dd67850c24e4fab8cacb
Exploit
https://github.com/vitejs/vite/security/advisories/GHSA-859w-5945-r5v3
More from Vite
7.5
CVE-2025-31125
Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query
8.3
CVE-2024-52011
launch-editor vulnerable to command injection via the crafted request on Windows
7.5
CVE-2026-112942
launch-editor: `fs.existsSync()` existence check can be bypassed on Windows
7.5
CVE-2026-53571
Vite: `server.fs.deny` bypass on Windows alternate paths
7.5
CVE-2026-39364
Vite has a `server.fs.deny` bypass with queries
