Vulnerability
CVE-2025-30360
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.
78 advisories report this vulnerability, across 4 ecosystems.
Advisories in Wolfi
- CGA-5m72-6h4q-chj3
- CGA-5ww9-vv29-v74f
- CGA-6jqq-j65q-pv8x
- CGA-7vq9-jxhx-3pvj
- CGA-8276-wx57-vc8j
- CGA-8j85-3j73-9g44
- CGA-c628-6qqg-4f6v
- CGA-f4w8-jm2m-x66r
- CGA-fchm-wq9j-pr52
- CGA-gvhv-h86x-3rqx
- CGA-h3xw-7gjw-cfhm
- CGA-m277-8rgc-h65m
- CGA-mh7q-w5wm-8pj3
- CGA-p429-xx4q-wxjj
- CGA-prjc-w6qc-wp9m
- CGA-q35f-wgm2-8r9j
- CGA-r22r-8p9f-r67f
- CGA-r5gh-v238-3ww4
- CGA-v9qv-73m3-p4jc
- CGA-wm2x-27rr-64h3
- CGA-wm97-r89r-7cqv
- CGA-xf8g-fmcg-4h6g
References
- https://github.com/webpack/webpack-dev-server/blob/55220a800ba4e30dbde2d98785ecf4c80b32f711/lib/Server.js#L3113-L3127
- https://github.com/webpack/webpack-dev-server/commit/5c9378bb01276357d7af208a0856ca2163db188e
- https://github.com/webpack/webpack-dev-server/commit/72efaab83381a0e1c4914adf401cbd210b7de7eb
- https://github.com/webpack/webpack-dev-server/security/advisories/GHSA-9jgg-88mc-972h