patchminder
Proof of concept · CISA assessment CVE-2024-23331

Information disclosurein vitejs vite.

Published 19 Jan 2024 · Updated 17 Jun 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment).

Severity
High 7.5
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.8% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed versions listed below
In plain words

Vite is a frontend tooling framework for javascript. The Vite dev server option `server.fs.deny` can be bypassed on case-insensitive file systems using case-augmented versions of filenames. Notably this affects servers hosted on Windows. This bypass is similar to CVE-2023-34092 · with surface area reduced to hosts having case-insensitive filesystems. Since `picomatch` defaults to case-sensitive glob matching, but the file server doesn't discriminate; a blacklist bypass is possible. By requesting raw filesystem paths using augmented casing, the matcher derived from `config.server.fs.deny` fails to block access to sensitive files. This issue has been addressed in vite@5.0.12, vite@4.5.2, vite@3.2.8, and vite@2.9.17. Users are advised to upgrade. Users unable to upgrade should restrict access to dev servers.

What to do now
  • Upgrade vite to 2.9.17, 3.2.8, 4.5.2, 5.0.12 or later, whichever matches your release line.
  • Upgrade vite (npm) to 2.9.17, 3.2.8, 4.5.2, 5.0.12 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
vite
2.7.0 to before 2.9.17
2.9.17
CVE record
vite
3.0.0 to before 3.2.8
3.2.8
CVE record
vite
4.0.0 to before 4.5.2
4.5.2
CVE record
vite
5.0.0 to before 5.0.12
5.0.12
CVE record
vite (npm)
2.7.0 to before 2.9.17
2.9.17
GitHub advisory
vite (npm)
3.0.0 to before 3.2.8
3.2.8
GitHub advisory
vite (npm)
4.0.0 to before 4.5.2
4.5.2
GitHub advisory
vite (npm)
5.0.0 to before 5.0.12
5.0.12
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 15 Jan 2024
    CVE ID reserved by GitHub_M.
  2. 19 Jan 2024
    Published in the CVE List.
  3. 17 Jun 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (CISA assessment). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other vite vulnerabilities

Same weakness:

All CWE-178 vulnerabilities

References
Cite this page

Patchminder. CVE-2024-23331: Information disclosure in vitejs vite. https://patchminder.com/cve/cve-2024-23331/ (accessed 5 December 2026).