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

CVE-2025-30360: Webpack-dev-server XSS Vulnerability

CVE-2025-30360 is an XSS flaw in Webpack-dev-server that allows attackers to steal source code via Cross-site WebSocket hijacking on non-Chromium browsers. This article covers technical details, affected versions, and mitigations.

Updated: January 22, 2026

CVE-2025-30360 Overview

CVE-2025-30360 is a Cross-site WebSocket Hijacking vulnerability affecting webpack-dev-server, a popular development tool that provides live reloading capabilities for webpack-based projects. This vulnerability allows attackers to steal source code from developers who visit a malicious website while using non-Chromium based browsers.

The flaw stems from an incomplete fix for a previous vulnerability (CVE-2018-14732). While the Origin header validation was implemented to prevent Cross-site WebSocket hijacking attacks, webpack-dev-server incorrectly allows all IP address Origin headers regardless of their source. This permissive behavior enables websites served on IP addresses to establish WebSocket connections to the development server, potentially exfiltrating sensitive source code.

Critical Impact

Attackers can steal application source code, including proprietary algorithms, API keys, credentials, and other sensitive information embedded in development projects through malicious websites targeting developers using non-Chromium browsers.

Affected Products

  • webpack.js webpack-dev-server versions prior to 5.2.1

Discovery Timeline

  • 2025-06-03 - CVE CVE-2025-30360 published to NVD
  • 2025-11-21 - Last updated in NVD database

Technical Details for CVE-2025-30360

Vulnerability Analysis

This vulnerability represents an Origin Validation Error (CWE-346), where the security control intended to prevent unauthorized WebSocket connections fails to properly validate IP address-based origins. The webpack-dev-server implements Origin header checking as a defense against Cross-site WebSocket hijacking attacks, a technique where malicious websites abuse WebSocket connections to interact with local development servers.

However, the implementation contains a critical oversight: IP address Origin headers are universally trusted without verification. When a developer visits a malicious website hosted on an IP address (rather than a domain name), the attacker-controlled site can establish a WebSocket connection to the victim's locally running webpack-dev-server instance.

This attack vector specifically affects non-Chromium based browsers (such as Firefox, Safari, and others), as Chromium-based browsers implement additional security measures that mitigate this attack surface. Through the hijacked WebSocket connection, an attacker can request and receive source code files being served by the development server.

Root Cause

The root cause lies in the Origin header validation logic within the Server.js file of webpack-dev-server. The code path that handles Origin header verification was designed to be permissive with IP address origins for legitimate local development scenarios. However, this design decision creates a security gap where any IP address-based Origin is accepted, including those from remote attacker-controlled servers.

The vulnerable code section can be found in the Server.js implementation. The fix in version 5.2.1 addresses this by implementing stricter validation that distinguishes between legitimate local IP addresses and potentially malicious remote IP addresses.

Attack Vector

The attack requires user interaction where a developer running webpack-dev-server visits a malicious website while their development server is active. The malicious site, served from an IP address rather than a domain name, initiates a WebSocket connection to the victim's localhost development server. Due to the permissive IP address Origin validation, this connection is accepted.

Once connected, the attacker's JavaScript code can enumerate and request source files through the WebSocket interface, exfiltrating the victim's source code to the attacker's server. The attack is particularly effective against developers using Firefox, Safari, or other non-Chromium browsers.

Detection Methods for CVE-2025-30360

Indicators of Compromise

  • Unexpected WebSocket connections to the webpack-dev-server from external IP addresses
  • Network traffic showing source code being transmitted to external destinations during development sessions
  • Browser developer tools showing WebSocket connections to localhost from pages served on IP addresses
  • Unusual outbound network activity from development machines during browsing sessions

Detection Strategies

  • Monitor WebSocket connection logs for connections originating from unexpected IP address-based origins
  • Implement network monitoring to detect outbound transfers of source code or development artifacts
  • Review browser history correlation with webpack-dev-server access logs for suspicious timing patterns
  • Deploy endpoint detection and response (EDR) solutions to identify data exfiltration attempts from development workstations

Monitoring Recommendations

  • Enable verbose logging in webpack-dev-server to track all incoming WebSocket connection attempts and their origin headers
  • Configure network security tools to alert on unusual data patterns leaving development environments
  • Implement browser extensions or policies that restrict WebSocket connections from untrusted origins
  • Regularly audit webpack-dev-server configuration and version across development teams

How to Mitigate CVE-2025-30360

Immediate Actions Required

  • Upgrade webpack-dev-server to version 5.2.1 or later immediately
  • Audit development environments to identify all instances running vulnerable versions
  • Consider using Chromium-based browsers for development activities until the upgrade is complete
  • Review network logs for any signs of historical exploitation

Patch Information

The vulnerability has been addressed in webpack-dev-server version 5.2.1. The fix implements proper validation of IP address Origin headers, ensuring that only legitimate local development connections are accepted. Two commits address this issue:

  • Commit 5c9378bb01276357d7af208a0856ca2163db188e
  • Commit 72efaab83381a0e1c4914adf401cbd210b7de7eb

For complete details, refer to the GitHub Security Advisory GHSA-9jgg-88mc-972h.

Workarounds

  • Use Chromium-based browsers (Chrome, Edge, Brave) exclusively for web browsing while running webpack-dev-server, as they provide additional protections against this attack
  • Configure webpack-dev-server to only accept connections from localhost or specific trusted origins using the allowedHosts configuration option
  • Implement network-level controls to block WebSocket connections from development servers to external destinations
  • Run webpack-dev-server in isolated network environments or containers with restricted outbound connectivity
bash
# Configuration example - Update package.json to use patched version
npm install webpack-dev-server@5.2.1 --save-dev

# Verify installed version
npm list webpack-dev-server

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechWebpack

  • 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
  • Technical References
  • GitHub Code Reference
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-30359: Webpack-dev-server XSS Vulnerability

  • CVE-2023-28154: Webpack.js Webpack XSS Vulnerability

  • CVE-2025-68458: Webpack SSRF Vulnerability

  • CVE-2025-68157: Webpack SSRF Vulnerability
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