A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-23331

CVE-2024-23331: Vitejs Vite Auth Bypass Vulnerability

CVE-2024-23331 is an authentication bypass flaw in Vitejs Vite that allows attackers to access sensitive files on case-insensitive file systems. This article covers the technical details, affected versions, and mitigation.

Published: June 2, 2026

CVE-2024-23331 Overview

CVE-2024-23331 is a path traversal vulnerability in Vite, a JavaScript frontend tooling framework. The flaw allows attackers to bypass the server.fs.deny allowlist on case-insensitive filesystems by requesting filenames with altered casing. Servers running on Windows are primarily affected. The issue arises because picomatch performs case-sensitive glob matching, while the underlying file server accesses files case-insensitively. Attackers exploiting this mismatch can read sensitive files that the dev server intends to block. The vulnerability is tracked under [CWE-178: Improper Handling of Case Sensitivity].

Critical Impact

Remote unauthenticated attackers can read arbitrary files on a Vite dev server hosted on a case-insensitive filesystem, leading to disclosure of source code, credentials, and configuration data.

Affected Products

  • Vite versions prior to 2.9.17, 3.2.8, 4.5.2, and 5.0.12
  • Vite dev servers running on Microsoft Windows hosts
  • Any Vite deployment on case-insensitive filesystems (including macOS default APFS configurations)

Discovery Timeline

  • 2024-01-19 - CVE-2024-23331 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-23331

Vulnerability Analysis

Vite exposes a development server with a server.fs.deny configuration option. This option accepts glob patterns identifying files the dev server must not serve, such as .env files or private keys. The matching engine is picomatch, which performs case-sensitive comparisons by default. When the dev server resolves a requested path, however, it relies on the host operating system's file API. On Windows and other case-insensitive filesystems, C:\app\.env and C:\app\.ENV resolve to the same file. The mismatch between case-sensitive pattern matching and case-insensitive file resolution creates a blacklist bypass. An attacker requesting a sensitive path with non-canonical casing evades the deny rule and receives the file contents. This issue is the case-sensitivity variant of CVE-2023-34092.

Root Cause

The root cause is inconsistent casing semantics between the picomatch glob matcher and the underlying filesystem call. picomatch treats .env and .Env as distinct strings, so the deny pattern fails to match. The Node.js fs API then reads the file using the operating system's case-insensitive lookup, returning the protected content.

Attack Vector

An unauthenticated remote attacker sends an HTTP request to the Vite dev server using a raw filesystem path with altered casing. For example, instead of requesting /@fs/C:/project/.env, the attacker requests /@fs/C:/project/.ENV. The deny pattern does not match the altered casing, and Vite serves the file. Exploitation requires only network access to the dev server and produces high-confidentiality impact without affecting integrity or availability.

No verified proof-of-concept code is published in the referenced advisories. See the GitHub Security Advisory GHSA-c24v-8rfc-w8vw for additional technical context.

Detection Methods for CVE-2024-23331

Indicators of Compromise

  • HTTP requests to Vite dev server endpoints containing /@fs/ with mixed-case path segments targeting sensitive files such as .env, .ENV, id_RSA, or config.JSON
  • Access log entries showing 200 responses for paths that should be blocked by server.fs.deny
  • Dev server log entries indicating file reads outside the configured project root

Detection Strategies

  • Inspect Vite dev server access logs for requests with non-canonical casing on filenames known to be in the deny list
  • Compare configured server.fs.deny patterns against served file paths using case-insensitive comparison to surface bypass attempts
  • Apply web application firewall rules that normalize request casing before matching against blocklists

Monitoring Recommendations

  • Alert on any external network connection to dev server ports (commonly 5173) on Windows or macOS developer workstations
  • Monitor for unexpected exposure of dev servers beyond localhost, particularly when --host is enabled
  • Track installed Vite versions across developer endpoints and flag versions below the patched releases

How to Mitigate CVE-2024-23331

Immediate Actions Required

  • Upgrade Vite to 5.0.12, 4.5.2, 3.2.8, or 2.9.17 depending on the major version in use
  • Audit all developer endpoints running Windows or macOS for vulnerable Vite installations
  • Ensure dev servers are bound to localhost only and never exposed to untrusted networks

Patch Information

The maintainers fixed the issue in commit 91641c4, which normalizes path casing before applying server.fs.deny matching on case-insensitive filesystems. Patched versions are vite@5.0.12, vite@4.5.2, vite@3.2.8, and vite@2.9.17. Details are published in the GitHub Security Advisory.

Workarounds

  • Restrict dev server access to trusted local interfaces using server.host: '127.0.0.1' in vite.config.js
  • Place the dev server behind authenticated network controls such as VPN or SSH tunneling when remote access is required
  • Avoid storing sensitive credentials inside the Vite project root so that a bypass yields no actionable data
bash
# Upgrade Vite to a patched release
npm install vite@5.0.12 --save-dev

# Verify installed version
npx vite --version

# Restrict dev server to localhost in vite.config.js
# server: { host: '127.0.0.1', strictPort: true }

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechWindows

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.48%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-178
  • Technical References
  • Vite Documentation Server Options
  • Vendor Resources
  • GitHub Commit Log

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-45585: Windows 11 24H2 Auth Bypass Vulnerability

  • CVE-2026-41097: Windows 10 1809 Auth Bypass Vulnerability

  • CVE-2026-35422: Windows 10 1607 Auth Bypass Vulnerability

  • CVE-2026-0390: Windows 10 1607 Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English