CVE-2025-58751
Vite middleware may serve files starting with the same name with the public directory
Record summary
CVE-2025-58751 has a selected CVSS score of 2.3 (low); EIP currently links 1 Nuclei template.
Description
Vite is a frontend tooling framework for JavaScript. Prior to versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20, files starting with the same name with the public directory were served bypassing the `server.fs` settings. Only apps that explicitly expose the Vite dev server to the network (using --host or `server.host` config option), use the public directory feature (enabled by default), and have a symlink in the public directory are affected. Versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20 fix the issue.
Exploitation context
Available material
- Nuclei templates
- 1
CISA SSVC decision
CISA Coordinator · SSVC 2.0.3 · Evaluated Sep 9, 2025 · Source: CVE List
Affected products and versions
2| Product | Source | Version range | Status |
|---|---|---|---|
| CVE List | < 5.4.20 | affected | |
| >= 6.0.0, < 6.3.6 | affected | ||
| >= 7.0.0, < 7.0.7 | affected | ||
| >= 7.1.0, < 7.1.5 | affected | ||
| GitHub Advisory | 7.1.0 to < 7.1.5 · Fixed in 7.1.5 | affected | |
| 7.0.0 to < 7.0.7 · Fixed in 7.0.7 | affected | ||
| 6.0.0 to < 6.3.6 · Fixed in 6.3.6 | affected | ||
| Before 5.4.20 · Fixed in 5.4.20 | affected |
Nuclei templates
1ProjectDiscoveryLOWVite Dev Server - Path TraversalCVSS 5.3
Vite is a frontend tooling framework for JavaScript. Prior to versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20, files starting with the same name with the public directory were served bypassing the `server.fs` settings. Only apps that explicitly expose the Vite dev server to the network (using --host or `server.host` config option), use the public directory feature (enabled by default), and have a symlink in the public directory are affected. Versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20 fix the issue.
Impact
Attackers can access unauthorized files bypassing filesystem restrictions, potentially exposing sensitive data.
Remediation
Update to versions 7.1.5, 7.0.7, 6.3.6, or 5.4.20 or later.
Source: ProjectDiscovery