CVE-2025-58751: vitejs vite Path Traversal
Vulnerability summary
CVE-2025-58751 is a medium (CVSS 5.3) Path Traversal vulnerability in vitejs vite. EPSS estimates a 1.21% chance of exploitation in the next 30 days, higher than 68.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, 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.
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
1.21%
Chance of exploitation in the next 30 days
Percentile
68%
Versus all other CVEs
30-day change
0.00 pp
From 1.21% 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-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted 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-g4jq-h2w9-997cX Refsource CONFIRMAdvisoryWEBExploitThird Party Advisory
- github.com/vitejs/vitePACKAGE