CVE-2024-23331
JavaScript vulnerability analysis and mitigation

Overview

Vite, a frontend tooling framework for JavaScript, contains a vulnerability (CVE-2024-23331) in its dev server option server.fs.deny that can be bypassed on case-insensitive file systems using case-augmented versions of filenames. This particularly affects servers hosted on Windows. The vulnerability was discovered on January 19, 2024, and affects Vite versions from 2.7.0 up to 5.0.11. The issue has been patched in versions 5.0.12, 4.5.2, 3.2.8, and 2.9.17 (GitHub Advisory).

Technical details

The vulnerability stems from picomatch defaulting to case-sensitive glob matching while the file server doesn't discriminate between cases. Since the matcher derived from config.server.fs.deny fails to block access to sensitive files when using augmented casing, attackers can bypass the blacklist protection. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N, indicating network accessibility with no required privileges or user interaction (GitHub Advisory).

Impact

When exploited, this vulnerability allows attackers to access sensitive files that should be protected by the server.fs.deny configuration. Files such as .env, certificates, and other sensitive files become accessible through case-manipulated requests, particularly on Windows and other case-insensitive filesystems (GitHub Advisory).

Mitigation and workarounds

Users are strongly advised to upgrade to the patched versions: vite@5.0.12, vite@4.5.2, vite@3.2.8, or vite@2.9.17. For users unable to upgrade immediately, it is recommended to restrict access to dev servers. The vulnerability has been fixed by adding the nocase: true option to the picomatch configuration (Vite Patch).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-69264HIGH8.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69262HIGH7.5
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69263HIGH7.5
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2026-22028HIGH7.2
  • JavaScriptJavaScript
  • preact
NoYesJan 07, 2026
CVE-2025-9611HIGH7.2
  • JavaScriptJavaScript
  • @playwright/mcp
NoYesJan 07, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management