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-2025-30208

CVE-2025-30208: Vitejs Vite Information Disclosure Flaw

CVE-2025-30208 is an information disclosure vulnerability in Vitejs Vite that allows attackers to bypass file access restrictions and read arbitrary files. This article covers technical details, affected versions, and patches.

Updated: May 15, 2026

CVE-2025-30208 Overview

Vite, a widely deployed frontend development tooling provider, contains an arbitrary file read vulnerability in its development server. The @fs endpoint denies access to files outside the Vite serving allow list. Appending ?raw?? or ?import&raw?? to a request URL bypasses this restriction and returns arbitrary file contents to the browser. The bypass exists because trailing separators such as ? are stripped in several code paths, but the query string regular expressions do not account for them. Only applications that explicitly expose the Vite dev server to the network using --host or the server.host configuration option are affected.

Critical Impact

Network-accessible Vite dev servers leak the contents of any file readable by the Node.js process, including source code, environment variables, and credentials.

Affected Products

  • Vite versions prior to 6.2.3 on the 6.2.x branch
  • Vite versions prior to 6.1.2, 6.0.12, and 5.4.15 on earlier 6.x and 5.x branches
  • Vite versions prior to 4.5.10 on the 4.x branch

Discovery Timeline

  • 2025-03-24 - CVE-2025-30208 published to the National Vulnerability Database (NVD)
  • 2025-09-23 - Last updated in NVD database

Technical Details for CVE-2025-30208

Vulnerability Analysis

The vulnerability is an information disclosure flaw classified under [CWE-200]. Vite's dev server exposes an internal @fs route to read project files during development. Access control logic restricts @fs to paths inside a configured allow list. Attackers bypass this control by appending crafted query suffixes to the request URL. The server normalizes the path by trimming trailing separators, but the query-matching regular expressions do not, producing inconsistent state between authorization and file resolution. With a high EPSS percentile, this issue has attracted active scanning and exploitation interest.

Root Cause

The root cause is inconsistent parsing of URL query strings. Trailing ? characters are stripped in some code paths and preserved in others. When the query regex fails to match ?raw?? or ?import&raw??, the request bypasses the @fs allow-list check, while the file resolution logic still interprets the URL as a valid filesystem read request.

Attack Vector

An unauthenticated remote attacker sends an HTTP request to the exposed Vite dev server containing a path to a target file with a crafted ?raw?? or ?import&raw?? suffix. The server returns the raw file contents in the response body. Exploitation requires no privileges or user interaction, and exposure is limited to dev servers bound to a non-loopback interface via --host or server.host. The vulnerability does not affect production builds because the dev server is not used at runtime in production deployments.

No verified exploit code is reproduced here. See the GitHub Security Advisory GHSA-x574-m823-4x7w for technical details.

Detection Methods for CVE-2025-30208

Indicators of Compromise

  • HTTP requests to the Vite dev server containing the query suffixes ?raw?? or ?import&raw??
  • Access log entries targeting sensitive files such as .env, id_rsa, /etc/passwd, or application configuration files via the dev server port (default 5173)
  • Outbound responses from developer workstations or CI runners containing file contents over the dev server port to unexpected external IP addresses

Detection Strategies

  • Inspect web proxy and network telemetry for URI patterns matching the regex \?(import&)?raw\?\? targeting Node.js dev server ports
  • Alert on any inbound connection to common Vite dev server ports (5173, 4173) from non-loopback or non-RFC1918 sources
  • Correlate process telemetry for node or vite processes bound to 0.0.0.0 or a public interface with concurrent inbound HTTP traffic

Monitoring Recommendations

  • Track running vite processes across developer endpoints and CI infrastructure and flag those launched with --host or a non-default server.host
  • Monitor egress firewall logs for unexpected file content transfers originating from developer workstations
  • Ingest Vite access logs into a centralized log platform and create detections for the bypass query patterns

How to Mitigate CVE-2025-30208

Immediate Actions Required

  • Upgrade Vite to a patched release: 6.2.3, 6.1.2, 6.0.12, 5.4.15, or 4.5.10 depending on the branch in use
  • Audit vite.config.js and CLI invocations across repositories for --host flags or server.host settings and remove unnecessary network exposure
  • Restrict dev server ports at the host or network firewall to loopback only

Patch Information

The maintainers fixed the bypass by aligning the query string regular expressions with the path normalization logic. The relevant fixes are referenced in upstream commits 315695e, 80381c3, 807d7f0, 92ca12d, and f234b57. Upgrade using your package manager, for example npm install vite@6.2.3 --save-dev.

Workarounds

  • Bind the dev server to localhost only by removing --host and setting server.host to 127.0.0.1
  • Place the dev server behind authenticated tunneling tools such as SSH port forwarding when remote access is required
  • Block inbound traffic to development ports (5173, 4173) at host-based firewalls on developer endpoints
bash
# vite.config.js - restrict dev server to loopback
export default {
  server: {
    host: '127.0.0.1',
    port: 5173,
    strictPort: true
  }
}

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechVitejs Vite

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability89.85%

  • 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-200

  • NVD-CWE-noinfo
  • Technical References
  • GitHub Security Advisory GHSA-x574-m823-4x7w
  • Vendor Resources
  • GitHub Vite Commit Changes

  • GitHub Vite Commit Fixes

  • GitHub Vite Commit Updates

  • GitHub Vite Commit Enhancements

  • GitHub Vite Commit Improvements
  • Related CVEs
  • CVE-2025-24010: Vitejs Vite SSRF 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