CVE-2025-46565 json
Vite's server.fs.deny bypassed with /. for files under project root
published 2025-04-30 18 mo ago modified 2026-09-10 1 mo ago also EUVD-2025-12770 , GHSA-859w-5945-r5v3
- cvss
- 5.3
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 69%
- public exploits
- 0
- none known, plus a Nuclei check
Summary
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.
Patch / fix
- npm vite 4.5.14, 5.4.19, 6.1.6, 6.2.7, 6.3.4
- vitejs vite 4.5.14, 5.4.19, 6.1.6, 6.2.7, 6.3.4
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-46565 updated cvss 6.5
vite: Path Traversal in Vite Dev Server Allows Access to Restricted Files
-
Red Hat Ansible Automation Platform 2 automation-gateway, automation-controller, automation-eda-controller Red Hat JBoss Enterprise Application Platform 8 org.keycloak-keycloak-parent Red Hat JBoss Enterprise Application Platform Expansion Pack org.keycloak-keycloak-parentaffected: workaround, no fix available “Fix deferred”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
1.24% chance of exploitation in the next 30 days, higher than 69% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Nuclei template Vite Dev Server - Information Exposure nuclei detection template
- github.com https://github.com/vitejs/vite/security/advisories/GHSA-859w-5945-r5v3 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 6.0 | 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 |
| CNA | 4.0 | 6.0 | 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 |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | 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 |
6.3.4 6.2.7 6.1.6 5.4.19 4.5.14 |
Affected products
- vitejs vite
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/vitejs/vite/commit/c22c43de612eebb6c182dd67850c24e4fab8cacb
web, patch
-
github.com
/vitejs/vite/security/advisories/GHSA-859w-5945-r5v3
exploit, web, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2025-46565
advisory
-
github.com
/vitejs/vite
package
Sources
- CVE List CVE-2025-46565
- GitHub Advisory GHSA-859w-5945-r5v3
- NVD CVE-2025-46565
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.