CVE-2025-46565
published medium CVSS 4.0 · 6.0Vite's server.fs.deny bypassed with /. for files under project root
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| vitejs | — | 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 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.0 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| vitejs | vite | >= 6.3.0, < 6.3.4 (affected)>= 6.2.0, < 6.2.7 (affected)>= 6.0.0, < 6.1.6 (affected)>= 5.0.0, < 5.4.19 (affected)< 4.5.14 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
2Provider assertions
2GitHub_M · cna
Vite's server.fs.deny bypassed with /. for files under project root
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- f2d75a32b21ba1d63cf2bbb7cac85b889cfd676f5d133d7f2a3b3744435ccaa1
- Ingested
- 23 Sep 2026, 08:49:40 UTC
- Source record
- Official CVE record