Skip to main content
VulnerabilityPublished Updated

CVE-2024-23331: Vite dev server option `server.fs.deny` can be bypassed when hosted on case-insensitive filesystem

Affects viteSource GCVE Database

0
Compare

Not known to be exploited · CVSS 7.5 High : upgrade to 5.0.12 soon.

Data as of 12 Nov 2026, 23:23 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 13 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Homebrewvitepkg:brew/viteOther threatsAffected
  • >=2.7.0 <5.0.12
Fixed in
  • 5.0.12

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

Community reviews

Loading reviews…