A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
    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
    Identity Security
    • Singularity Identity
      Identity Threat Detection and Response
  • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-24010

CVE-2025-24010: Vitejs Vite SSRF Vulnerability

CVE-2025-24010 is an SSRF flaw in Vitejs Vite that allows malicious websites to send requests to the dev server and read responses. This article covers technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2025-24010 Overview

CVE-2025-24010 is an Origin Validation Error vulnerability affecting Vite, a popular frontend tooling framework for JavaScript. The vulnerability stems from permissive default CORS (Cross-Origin Resource Sharing) settings combined with insufficient validation of the Origin header for WebSocket connections. This flaw allows any malicious website to send arbitrary requests to a Vite development server and read the responses, potentially exposing sensitive source code, configuration files, and development environment data.

Critical Impact

Attackers can leverage this vulnerability to exfiltrate sensitive application source code, environment variables, and configuration data from developers' local machines through malicious websites.

Affected Products

  • Vite versions prior to 6.0.9
  • Vite versions prior to 5.4.12
  • Vite versions prior to 4.5.6

Discovery Timeline

  • 2025-01-20 - CVE-2025-24010 published to NVD
  • 2025-09-19 - Last updated in NVD database

Technical Details for CVE-2025-24010

Vulnerability Analysis

This vulnerability is classified as CWE-346 (Origin Validation Error), which occurs when a product fails to properly verify that the source of data or communication is valid. In the context of Vite's development server, the issue manifests in two interconnected security weaknesses.

First, the development server's default CORS configuration is overly permissive, allowing cross-origin requests from any domain. Second, and more critically, the WebSocket connection handling lacks proper validation of the Origin header. WebSocket connections are particularly sensitive because they maintain persistent bidirectional communication channels that can bypass traditional CORS protections once established.

When a developer runs Vite's development server locally, a malicious website visited in the same browser can exploit these weaknesses to establish connections to the local development server. The attacker's website can then request and read source files, module contents, and potentially sensitive configuration data that the development server exposes.

Root Cause

The root cause lies in the insufficient security controls for cross-origin access in Vite's HTTP and WebSocket server implementations. The development server was designed with a focus on developer experience and local development convenience, resulting in permissive default settings that assume a trusted network environment. The lack of Origin header validation for WebSocket upgrade requests allows attackers to circumvent the browser's same-origin policy protections.

Attack Vector

The attack requires user interaction—specifically, a developer with an active Vite development server must visit a malicious website. The attacker-controlled website contains JavaScript code that initiates connections to common development server ports (typically localhost:5173 or similar). Because the Vite server does not validate the Origin header, these cross-origin requests succeed.

The malicious website can then request the application's source code, including JavaScript modules, configuration files such as vite.config.js, and potentially environment variable files. The attack exploits the trust developers place in their local development environment, turning the browser into an exfiltration vector.

For detailed technical information about the exploitation mechanism, refer to the GitHub Security Advisory for GHSA-vg6x-rcgg-rjx6.

Detection Methods for CVE-2025-24010

Indicators of Compromise

  • Unexpected outbound network connections from the browser to localhost development ports
  • Cross-origin WebSocket connection attempts in browser developer tools network logs
  • Unusual file access patterns in Vite development server logs from cross-origin sources
  • Network traffic analysis showing responses to localhost ports being transmitted to external domains

Detection Strategies

  • Monitor browser network activity for WebSocket connections to development server ports originating from external domains
  • Implement network monitoring to detect data exfiltration patterns from localhost to external hosts
  • Review development server logs for requests containing suspicious or unexpected Origin headers
  • Use browser extensions or security tools that alert on cross-origin requests to localhost services

Monitoring Recommendations

  • Enable verbose logging on Vite development servers to capture Origin header information
  • Deploy endpoint detection tools that monitor for unusual localhost network activity patterns
  • Establish baseline network behavior during development to identify anomalous cross-origin communications
  • Implement browser-level monitoring for JavaScript attempting to connect to local development ports

How to Mitigate CVE-2025-24010

Immediate Actions Required

  • Upgrade Vite to version 6.0.9, 5.4.12, or 4.5.6 or later immediately
  • Avoid browsing untrusted websites while running Vite development servers
  • Consider using private browsing or separate browser profiles for development work
  • Restrict development server access to the loopback interface only

Patch Information

The Vite maintainers have released security patches addressing this vulnerability across all supported major versions. The fixes implement proper Origin header validation for WebSocket connections and tighten the default CORS configuration. Organizations should update to the following patched versions:

  • Version 6.0.9 for Vite 6.x users
  • Version 5.4.12 for Vite 5.x users
  • Version 4.5.6 for Vite 4.x users

For complete details on the security fix, see the Vite Security Advisory.

Workarounds

  • Configure the development server to bind only to 127.0.0.1 rather than all interfaces
  • Implement a reverse proxy with strict Origin validation in front of the development server
  • Use browser isolation by running development browsers in separate profiles or containers
  • Consider using a firewall to block external access to development server ports
bash
# Configuration example - restrict Vite server to localhost only
# In vite.config.js, add server configuration:
# server: {
#   host: '127.0.0.1',
#   strictPort: true
# }
# 
# Alternatively, start Vite with host restriction:
npx vite --host 127.0.0.1

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

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechVitejs Vite

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-346
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-31125

  • CVE-2025-30208
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
  • English
  • 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