The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2026-39365

CVE-2026-39365: Vite Path Traversal Vulnerability

CVE-2026-39365 is a path traversal vulnerability in Vite that allows attackers to bypass security restrictions and access files outside the project root. This article covers technical details, affected versions, and mitigation.

Published: April 10, 2026

CVE-2026-39365 Overview

A path traversal vulnerability has been identified in Vite, a popular frontend tooling framework for JavaScript. The vulnerability exists in the development server's handling of .map requests for optimized dependencies. The server resolves file paths and calls readFile without properly restricting ../ path traversal segments in the URL. This allows attackers to bypass the server.fs.strict allow list and retrieve .map files located outside the project root directory, provided they can be parsed as valid source map JSON.

Critical Impact

Attackers can bypass filesystem security restrictions to access sensitive source map files outside the intended project directory, potentially exposing proprietary source code and configuration details.

Affected Products

  • Vite versions 6.0.0 to before 6.4.2
  • Vite versions 7.x to before 7.3.2
  • Vite versions 8.x to before 8.0.5

Discovery Timeline

  • 2026-04-07 - CVE CVE-2026-39365 published to NVD
  • 2026-04-08 - Last updated in NVD database

Technical Details for CVE-2026-39365

Vulnerability Analysis

This vulnerability is classified as CWE-22 (Path Traversal), a well-known weakness that occurs when software uses external input to construct a pathname intended to identify a file or directory located underneath a restricted parent directory, but fails to properly neutralize special elements within the pathname.

In the context of Vite's development server, the vulnerability manifests when handling requests for source map (.map) files associated with optimized dependencies. The server's file resolution logic does not adequately sanitize URL paths containing directory traversal sequences such as ../. This oversight allows an attacker to craft malicious requests that escape the intended project root directory.

The server.fs.strict configuration option, which is designed to restrict file access to within the project workspace, can be effectively bypassed through this path traversal technique. However, the exploitability is somewhat limited by the requirement that retrieved files must be parseable as valid JSON source map files.

Root Cause

The root cause of this vulnerability lies in insufficient input validation within Vite's development server request handler. When processing requests for .map files of optimized dependencies, the server constructs file paths by directly incorporating URL segments without first neutralizing path traversal sequences. The readFile operation is then called on these unsanitized paths, allowing access to files outside the designated project directory structure.

Attack Vector

The vulnerability is exploitable over the network when a Vite development server is accessible to an attacker. An attacker can send specially crafted HTTP requests to the development server containing path traversal sequences targeting .map files outside the project root.

The attack scenario involves:

  1. Identifying a Vite development server exposed on the network
  2. Crafting a request URL containing ../ sequences targeting source map files outside the project directory
  3. The server processes the request, resolving the path without sanitization
  4. If the targeted file exists and can be parsed as valid source map JSON, its contents are returned to the attacker

The vulnerability mechanism involves manipulating the URL path in requests to the development server. By including path traversal sequences such as ../, an attacker can navigate outside the project root directory. The server's readFile function processes these paths without proper sanitization, bypassing the server.fs.strict security control. For detailed technical information, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-39365

Indicators of Compromise

  • HTTP requests to the development server containing ../ path traversal sequences targeting .map files
  • Unusual access patterns to source map endpoints with deep directory navigation
  • Server logs showing requests for .map files with paths referencing directories outside the project root
  • Unexpected file access events triggered by the Node.js process running the Vite dev server

Detection Strategies

  • Monitor web server access logs for requests containing path traversal patterns (e.g., ../, ..%2F, ..%5C) targeting .map endpoints
  • Implement intrusion detection rules that alert on directory traversal attempts in HTTP requests
  • Review application firewall logs for blocked path traversal attempts that may indicate reconnaissance
  • Audit development server configurations to ensure server.fs.strict is enabled and properly configured

Monitoring Recommendations

  • Deploy web application firewall (WAF) rules to detect and block path traversal attempts
  • Enable verbose logging on Vite development servers to capture detailed request information
  • Set up alerting for anomalous file access patterns from Node.js processes
  • Regularly audit which network interfaces the development server is bound to

How to Mitigate CVE-2026-39365

Immediate Actions Required

  • Upgrade Vite to a patched version: 6.4.2, 7.3.2, or 8.0.5 depending on your major version
  • Restrict network access to development servers by binding to localhost only
  • Ensure development servers are not exposed to untrusted networks or the public internet
  • Review server logs for any evidence of exploitation attempts

Patch Information

The vulnerability has been fixed in Vite versions 6.4.2, 7.3.2, and 8.0.5. Organizations should update to the appropriate patched version based on their current major version:

Current VersionUpgrade To
6.0.0 - 6.4.16.4.2+
7.0.0 - 7.3.17.3.2+
8.0.0 - 8.0.48.0.5+

For additional details, see the GitHub Security Advisory.

Workarounds

  • Bind the Vite development server to localhost or 127.0.0.1 to prevent external network access
  • Implement network-level access controls to restrict who can reach the development server
  • Use a reverse proxy with path filtering to block requests containing traversal sequences
  • Avoid running development servers in production or publicly accessible environments
bash
# Configuration example - Bind Vite dev server to localhost only
# In vite.config.js or vite.config.ts:
# server: {
#   host: '127.0.0.1',
#   fs: {
#     strict: true,
#     allow: ['.']
#   }
# }

# Upgrade to patched version using npm
npm update vite@latest

# Or install specific patched version
npm install vite@6.4.2  # For v6.x users
npm install vite@7.3.2  # For v7.x users
npm install vite@8.0.5  # For v8.x users

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechVite

  • SeverityMEDIUM

  • CVSS Score6.3

  • EPSS Probability3.12%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-39364: Vite Information Disclosure Vulnerability

  • CVE-2026-39363: Vite Information Disclosure Vulnerability

  • CVE-2025-32395: Vite Information Disclosure Vulnerability

  • CVE-2025-31486: Vite Information Disclosure Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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