CVE-2025-58752: vitejs vite Relative Path Traversal
Vulnerability summary
CVE-2025-58752 is a medium (CVSS 5.3) Relative Path Traversal vulnerability in vitejs vite. EPSS estimates a 0.61% chance of exploitation in the next 30 days, higher than 48.1% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 0 · Related 2Timeline
- 08-09-2025PublishedVulnerability first disclosed.
- 09-09-2025Last modifiedVulnerability information updated.
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, any HTML files on the machine were served regardless of the `server.fs` settings. Only apps that explicitly expose the Vite dev server to the network (using --host or server.host config option) and use `appType: 'spa'` (default) or `appType: 'mpa'` are affected. This vulnerability also affects the preview server. The preview server allowed HTML files not under the output directory to be served. Versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20 fix the issue.
CVSS metrics
6 scores · 5 sources · 2 versions- OSV · WolfiEcosystem advisory · calculated2.3LowCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
- OSV · NpmEcosystem advisory · calculated2.3LowCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated2.3LowCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
- NVDNIST2.3LowCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
0.61%
Chance of exploitation in the next 30 days
Percentile
48%
Versus all other CVEs
30-day change
0.00 pp
From 0.61% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundVite
Maturity: poc
Weaknesses
CWE · root cause- CWE-23Relative Path TraversalThe product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory.
- CWE-200Exposure of Sensitive Information to an Unauthorized ActorThe product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
- CWE-284Improper Access ControlThe product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.
Affected systems
Chainguard12 products
- gitlab-rails-ce-18.1All versions (No fix recorded)
- gitlab-rails-ce-fips-18.1All versions (No fix recorded)
- langfuse-2-worker< 2.95.12-r26
- langfuse-3-compat< 3.225.7-r6
- langfuse-3-worker< 3.179.1-r3
Wolfi5 products
- langfuse-3-compat< 3.225.7-r6
- langfuse-3-worker< 3.179.1-r3
- vitess-23< 23.0.0-r2
- vitess-23-binaries< 23.0.0-r2
- vitess-23-compat< 23.0.0-r2
Npm1 product
- vite≥ 7.1.0, < 7.1.5 | ≥ 7.0.0, < 7.0.7 | ≥ 6.0.0, < 6.3.6 | < 5.4.20
Vitejs1 product
- vite< 5.4.20 | ≥ 6.0.0, < 6.3.6 | ≥ 7.0.0, < 7.0.7 | ≥ 7.1.0, < 7.1.5
4 vendors · 19 products
References
9 links- github.com/vitejs/vite/security/advisories/GHSA-jqfw-vq24-v9c3X Refsource CONFIRMAdvisoryWEBExploitThird Party Advisory
- github.com/vitejs/vitePACKAGE