CVE-2025-58751: Vite - Path Traversal
- Cve: CVE-2025-58751
- Name: Vite - Path Traversal
- 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.
- 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.
- Vulnerability type: path_traversal
- Vulnerability impact: file_system_read, information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.3
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- Epss score: 0.01325
- Epss percentile: 0.71708
- Assignee: [email protected]
- Published at: 2025-09-08T23:15:36Z
- Age in days: 442
- Modified at: 2026-06-17T09:44:52Z
- Patch available: yes
- Public exploits total: 1
- References total: 7
- Products total: 1
- Oss: yes
- Projects total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-58751
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
Nuclei templates
| Id | Url |
|---|---|
| CVE-2025-58751 | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-58751.yaml |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/vitejs/vite/security/advisories/GHSA-g4jq-h2w9-997c | nvd | 2025-09-08 |
References
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| vitejs:vite | >= 7.1.0, < 7.1.5; >= 7.0.0, < 7.0.7; >= 6.0.0, < 6.3.6; < 5.4.20 | no | nvd | /v1/products/vitejs/vite |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| vitejs/vite | commit, package, security_advisory | yes | /v1/repositories/vitejs/vite |
| lukeed/sirv | commit | yes | /v1/repositories/lukeed/sirv |
Index
- Repositories: 223
- Repositories high signal: 4
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2025-09-08
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, initial access since, hackerone reports, exposed hosts