CVE-2025-46565: vitejs vite Path Traversal
Vulnerability summary
CVE-2025-46565 is a medium (CVSS 6.0) Path Traversal vulnerability in vitejs vite. EPSS estimates a 1.17% chance of exploitation in the next 30 days, higher than 66.9% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 0 · Related 4Timeline
- 01-05-2025PublishedVulnerability first disclosed.
- 02-05-2025Last modifiedVulnerability information updated.
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 metrics
6 scores · 5 sources · 2 versions- OSV · WolfiEcosystem advisory · calculated6.0MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- OSV · NpmEcosystem advisory · calculated6.0MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated6.0MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- NVDNIST6.0MediumCVSS: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
EPSS trend
Probability
1.17%
Chance of exploitation in the next 30 days
Percentile
67%
Versus all other CVEs
30-day change
+0.01 pp
From 1.16% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundVite
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Chainguard3 products
- langfuse-2-worker< 2.95.12-r26
- langfuse-fips-2-worker< 2.95.12-r28
- vite< 6.3.4-r0
Npm1 product
- vite≥ 6.3.0, < 6.3.4 | ≥ 6.2.0, < 6.2.7 | ≥ 6.0.0, < 6.1.6 | ≥ 5.0.0, < 5.4.19 | < 4.5.14
Vitejs1 product
- vite< 4.5.14 | ≥ 5.0.0, < 5.4.19 | ≥ 6.0.0, < 6.1.6 | ≥ 6.2.0, < 6.2.7 | ≥ 6.3.0, < 6.3.4
Wolfi1 product
- vite< 6.3.4-r0
4 vendors · 6 products
References
5 links- github.com/vitejs/vite/security/advisories/GHSA-859w-5945-r5v3X Refsource CONFIRMAdvisoryWEBExploitVendor Advisory
- github.com/vitejs/vitePACKAGE