CVE-2025-58751 Details
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.
A vulnerability in Vite, a frontend tooling framework for JavaScript, allows files in the public directory to be served inappropriately, bypassing the intended file system restrictions. This issue affects Vite versions prior to 7.1.5, 7.0.7, 6.3.6, and 5.4.20. The vulnerability arises when the Vite development server is exposed to the network, the public directory feature is enabled, and a symbolic link exists within the public directory.
Users can upgrade to Vite versions 7.1.5, 7.0.7, 6.3.6, or 5.4.20 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 9, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-200 | Exposure of Sensitive Information to an Unauthorized Actor | [email protected] |
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
| CWE-284 | Improper Access Control | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| vitejs vite | < 5.4.20 >= 6.0.0, < 6.3.6 >= 7.0.0, < 7.0.7 >= 7.1.0, < 7.1.5 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 17, 2025 | Initial Analysis | [email protected] |
| Sep 9, 2025 | CVE Modified | CISA-ADP |
| Sep 8, 2025 | New CVE Received | [email protected] |