CVE-2024-23331: Vite dev server option `server.fs.deny` can be bypassed when hosted on case-insensitive filesystem
Affects viteSource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 5.0.12 soon.
Data as of 12 Nov 2026, 23:23 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 56% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.0.12
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 13 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.
What to do
Upgrade vite to 5.0.12.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewvitepkg:brew/viteOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available and users should upgrade to vite@5.0.12 or the corresponding patched versions vite@4.5.2, vite@3.2.8, or vite@2.9.17. Applying these official patches will prevent the bypass of the `server.fs.deny` option on case-insensitive filesystems. Until patched, users should avoid exposing Vite dev servers publicly on case-insensitive filesystems to untrusted networks.
Description
The Vite development server option `server.fs.deny` can be bypassed on case-insensitive filesystems, such as Windows, by using case-augmented filenames. This allows an attacker to access files that are intended to be blocked by the deny list. The issue arises because the underlying glob matching is case-sensitive, while the filesystem is not, enabling blacklist bypass. This vulnerability affects Vite versions from 2.7.0 up to but not including 5.0.12 and has been fixed in 5.0.12 and earlier patch releases of prior major versions.
References
- github.com/vitejs/vite/security/advisories/GHSA-c24v-8rfc-w8vw (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2023-34092 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2024-23331 (opens in a new tab)
- github.com/vitejs/vite/commit/0cd769c279724cf27934b1270fbdd45d68217691 (opens in a new tab)
- github.com/vitejs/vite/commit/91641c4da0a011d4c5352e88fc68389d4e1289a5 (opens in a new tab)
- github.com/vitejs/vite/commit/a26c87d20f9af306b5ce3ff1648be7fa5146c278 (opens in a new tab)
- github.com/vitejs/vite/commit/eeec23bbc9d476c54a3a6d36e78455867185a7cb (opens in a new tab)
- github.com/vitejs/vite (opens in a new tab)
- vitejs.dev/config/server-options.html (opens in a new tab)