CVE-2025-30360 Details
Description
webpack-dev-server allows users to use webpack with a development server that provides live reloading. Prior to version 5.2.1, webpack-dev-server users' source code may be stolen when you access a malicious web site with non-Chromium based browser. The `Origin` header is checked to prevent Cross-site WebSocket hijacking from happening, which was reported by CVE-2018-14732. But webpack-dev-server always allows IP address `Origin` headers. This allows websites that are served on IP addresses to connect WebSocket. An attacker can obtain source code via a method similar to that used to exploit CVE-2018-14732. Version 5.2.1 contains a patch for the issue.
A vulnerability in webpack-dev-server prior to version 5.2.1 allows for source code theft when users access a malicious website using a non-Chromium-based browser. The issue arises because the server improperly handles the 'Origin' header, which is meant to prevent Cross-site WebSocket hijacking. While this header is typically checked, webpack-dev-server allows IP address 'Origin' headers to bypass this protection. As a result, websites served from IP addresses can establish WebSocket connections that exploit this vulnerability, similar to the method used in CVE-2018-14732.
Users can upgrade to webpack-dev-server version 5.2.1 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 3, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-346 | Origin Validation Error | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| webpack.js webpack-dev-server | < 5.2.1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2025 | Reanalysis | [email protected] |
| Oct 3, 2025 | Initial Analysis | [email protected] |
| Jun 3, 2025 | New CVE Received | [email protected] |