Vite's server.fs.deny bypassed with /. for files under project root
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 3 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-22 and the CVSS impact.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| vitejs | vite | 6.3.0 to before 6.3.4; 6.2.0 to before 6.2.7; 6.0.0 to before 6.1.6; 5.0.0 to before 5.4.19; before 4.5.14 | 6.3.4, 6.2.7, 6.1.6, 5.4.19, 4.5.14 | Patch available | CNA |
| — | vite (npm) | 6.3.0 to before 6.3.4 | 6.3.4 | Patch available | GHSA-859w-5945-r5v3 |
| — | vite (npm) | 6.2.0 to before 6.2.7 | 6.2.7 | Patch available | GHSA-859w-5945-r5v3 |
| — | vite (npm) | 6.0.0 to before 6.1.6 | 6.1.6 | Patch available | GHSA-859w-5945-r5v3 |
| — | vite (npm) | 5.0.0 to before 5.4.19 | 5.4.19 | Patch available | GHSA-859w-5945-r5v3 |
| — | vite (npm) | before 4.5.14 | 4.5.14 | Patch available | GHSA-859w-5945-r5v3 |
- vite Vendorvitejs Affected 6.3.0 to before 6.3.4; 6.2.0 to before 6.2.7; 6.0.0 to before 6.1.6; 5.0.0 to before 5.4.19; before 4.5.14 Fixed in 6.3.4, 6.2.7, 6.1.6, 5.4.19, 4.5.14 Patch available CNA
- vite (npm) Vendor— Affected 6.3.0 to before 6.3.4 Fixed in 6.3.4 Patch available GHSA-859w-5945-r5v3
- vite (npm) Vendor— Affected 6.2.0 to before 6.2.7 Fixed in 6.2.7 Patch available GHSA-859w-5945-r5v3
- vite (npm) Vendor— Affected 6.0.0 to before 6.1.6 Fixed in 6.1.6 Patch available GHSA-859w-5945-r5v3
- vite (npm) Vendor— Affected 5.0.0 to before 5.4.19 Fixed in 5.4.19 Patch available GHSA-859w-5945-r5v3
- vite (npm) Vendor— Affected before 4.5.14 Fixed in 4.5.14 Patch available GHSA-859w-5945-r5v3
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:* | before 4.5.14; 5.0.0 to before 5.4.19; 6.0.0 to before 6.1.6; 6.2.0 to before 6.2.7; 6.3.0 to before 6.3.4 | Vulnerable | vitejs |
- cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:* Versions before 4.5.14; 5.0.0 to before 5.4.19; 6.0.0 to before 6.1.6; 6.2.0 to before 6.2.7; 6.3.0 to before 6.3.4 Vulnerable ·vitejs
Remediation
- Fix · CNA vite (vitejs) Fixed in 6.3.4, 6.2.7, 6.1.6, 5.4.19, 4.5.14
- Fix · GHSA-859w-5945-r5v3 vite (npm) Fixed in 6.3.4 Advisory →
- Fix · GHSA-859w-5945-r5v3 vite (npm) Fixed in 6.2.7 Advisory →
- Fix · GHSA-859w-5945-r5v3 vite (npm) Fixed in 6.1.6 Advisory →
- Fix · GHSA-859w-5945-r5v3 vite (npm) Fixed in 5.4.19 Advisory →
- Fix · GHSA-859w-5945-r5v3 vite (npm) Fixed in 4.5.14 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet: Fix deferred |
| Red Hat JBoss Enterprise Application Platform 8 | Affected | No fix yet: Fix deferred |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2025-46565
- 2026-10-03 Alias added: GHSA-859w-5945-r5v3
References
More vitejs Vite vulnerabilities
- TI-2025-22386 Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query KEVCVSS 3.1HIGH 7.5
- TI-2026-28350 Vite Affected by Arbitrary File Read via Vite Dev Server WebSocket CVSS 4.0HIGH 8.2
- TI-2025-21544 Vite bypasses server.fs.deny when using `?raw??` CVSS 3.1HIGH 7.5
- TI-2023-16938 Vite Server Options (server.fs.deny) can be bypassed using double forward-slash (//) CVSS 3.1HIGH 7.5
- TI-2026-38634 Vite: `server.fs.deny` bypass on Windows alternate paths CVSS 4.0HIGH 8.2
- TI-2026-28352 Vite has a Path Traversal in Optimized Deps `.map` Handling CVSS 4.0MEDIUM 6.3
Sources
- CVE-2025-46565 · CVE Program
- CVE-2025-46565 · NVD
- FIRST EPSS
- GHSA-859w-5945-r5v3 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-46565 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences