Quick answers
- Is CVE-2025-46565 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2025-46565 being exploited in the wild.
- How severe is CVE-2025-46565?
- Medium severity, with a CVSS score of 4, published 30 April 2025.
- Which products and versions are affected?
- Vite <=4.5.13, 5.0.0-5.4.18, 6.0.0-6.1.5, 6.2.0-6.2.6, 6.3.0-6.3.3.
- Is there a fix for CVE-2025-46565?
- No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
- How is CVE-2025-46565 attacked?
- It is attacked over the network.
- Am I affected by CVE-2025-46565?
- Check whether you run Vite at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
This vulnerability is a path traversal / access control bypass in Vite's file serving restrictions. The server.fs.deny configuration option is meant to block access to sensitive files matching patterns like .env, *.crt, and *.pem. However, the pattern matching can be bypassed by appending /. to the request path (e.g., requesting /.env/. instead of /.env). An attacker with network access to a Vite dev server that has been explicitly exposed via --host or server.host configuration can read denied files under the project root. No authentication or user interaction is strictly required from the target system, though passive user interaction is noted in the CVSS metrics. Patches are available for all affected versions from 4.5.14 onwards.
Affected products
- Vite Vite <=4.5.13, 5.0.0-5.4.18, 6.0.0-6.1.5, 6.2.0-6.2.6, 6.3.0-6.3.3
Identifiers
- CVE-2025-46565
- GHSA-859w-5945-r5v3
Timeline
- 2025-04-30: disclosed
- 2025-05-01: advisory: NVD published