Cross-Site WebSocket Hijacking in Webpack Dev Server
CVE-2025-30360

6.5MEDIUM

Key Information:

Vendor

Webpack

Vendor
CVE Published:
3 June 2025

What is CVE-2025-30360?

The webpack-dev-server is vulnerable to an attack that allows attackers to exploit improper handling of IP address Origin headers. Prior to version 5.2.1, accessing a malicious site with a non-Chromium browser could permit attackers to connect WebSocket, potentially allowing them to steal source code from users. This vulnerability arises because the Origin header checks, meant to safeguard against Cross-site WebSocket hijacking, inadequately restrict connections from IP addresses, thereby exposing sensitive code. Users are advised to upgrade to version 5.2.1 or above to mitigate this risk.

Affected Version(s)

webpack-dev-server < 5.2.1

References

CVSS V3.1

Score:
6.5
Severity:
MEDIUM
Confidentiality:
High
Integrity:
None
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
Required
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.