WebSocket Vulnerability in Webpack Development Server by Webpack
CVE-2026-9595
5.3MEDIUM
What is CVE-2026-9595?
A configuration oversight in webpack-dev-server allows a user-defined proxy with broad context to intercept the dev server's Hot Module Replacement (HMR) WebSocket connection. This can inadvertently expose sensitive browser cookies and Origin headers to the backend server, negating the intended Host/Origin validation. Such misconfigurations can further corrupt the HMR socket due to both the HMR and proxy writing data to the same connection. Users are advised to limit proxy contexts to specific paths and omit WebSocket forwarding when unnecessary to mitigate these risks. The issue has been rectified in version 5.2.5.
Affected Version(s)
webpack-dev-server 0 < 5.2.5
webpack-dev-server 5.2.5
