CVE-2023-34092: vitejs vite
Vulnerability summary
CVE-2023-34092 is a high (CVSS 7.5) vulnerability in vitejs vite. EPSS estimates a 3.13% chance of exploitation in the next 30 days, higher than 87.6% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 01-06-2023PublishedVulnerability first disclosed.
- 08-01-2025Last modifiedVulnerability information updated.
Description
Vite provides frontend tooling. Prior to versions 2.9.16, 3.2.7, 4.0.5, 4.1.5, 4.2.3, and 4.3.9, Vite Server Options (`server.fs.deny`) can be bypassed using double forward-slash (//) allows any unauthenticated user to read file from the Vite root-path of the application including the default `fs.deny` settings (`['.env', '.env.*', '*.{crt,pem}']`). Only users explicitly exposing the Vite dev server to the network (using `--host` or `server.host` config option) are affected, and only files in the immediate Vite project root folder could be exposed. This issue is fixed in vite@4.3.9, vite@4.2.3, vite@4.1.5, vite@4.0.5, vite@3.2.7, and vite@2.9.16.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · NpmEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
3.13%
Chance of exploitation in the next 30 days
Percentile
88%
Versus all other CVEs
30-day change
0.00 pp
From 3.13% 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-50Path Equivalence: '//multiple/leading/slash'The product accepts path input in the form of multiple leading slash ('//multiple/leading/slash') without appropriate validation, which can lead to ambiguous path resolution and allow an attacker to traverse the file system to unintended locations or access arbitrary files.
- 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-706Use of Incorrectly-Resolved Name or ReferenceThe product uses a name or reference to access a resource, but the name/reference resolves to a resource that is outside of the intended control sphere.
Affected systems
Npm1 product
- vite< 2.9.16 | ≥ 3.0.2, < 3.2.7 | ≥ 4.0.0, < 4.0.5 | ≥ 4.1.0, < 4.1.5 | ≥ 4.2.0, < 4.2.3 | ≥ 4.3.0, < 4.3.9
Vitejs1 product
- vite< 2.9.16 | ≥ 3.0.2, < 3.2.7 | ≥ 4.0.0, < 4.0.5 | ≥ 4.1.0, < 4.1.5 | ≥ 4.2.0, < 4.2.3 | ≥ 4.3.0, < 4.3.9 | 2.9.15
2 vendors · 2 products
References
6 links- github.com/vitejs/vite/security/advisories/GHSA-353f-5xf4-qw67X Refsource CONFIRMWEBExploitVendor Advisory
- github.com/vitejs/vitePACKAGE