Cross-Site WebSocket Hijacking in Webpack Dev Server
CVE-2025-30360
6.5MEDIUM
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