Vulnerability · Published Jun 15, 2026 · Assigned by openjs

CVE-2026-9595webpack-dev-server vulnerable to HMR WebSocket interception via permissive user proxies

Medium 5.3

In plain English

A medium-severity security flaw in webpack-dev-server from webpack-dev-server. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 6% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.2%top 94.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Impact: When a user-configured proxy on webpack-dev-server has a broad context (e.g. /) and ws: true, it also intercepts the dev server's own HMR WebSocket and forwards it to the proxy target. This leaks the browser's cookies and Origin header to the backend, bypasses the dev server's Host/Origin validation, and corrupts the HMR socket (both HMR and the proxy end up writing to the same socket). Patches: Fixed in webpack-dev-server@5.2.5. Workarounds: Scope user-defined proxy context to specific paths instead of /, or omit ws: true from the proxy entry when WebSocket forwarding is not required.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Ubuntu:22.04:LTSnode-webpackno fix listedUBUNTU-CVE-2026-9595
Ubuntu:24.04:LTSnode-webpackno fix listedUBUNTU-CVE-2026-9595
Ubuntu:25.10node-webpackno fix listedUBUNTU-CVE-2026-9595
Ubuntu:26.04:LTSnode-webpackno fix listedUBUNTU-CVE-2026-9595
Ubuntu:26.10node-webpackno fix listedUBUNTU-CVE-2026-9595
Ubuntu:22.04:LTSvue.jsno fix listedUBUNTU-CVE-2026-9595
Ubuntu:24.04:LTSvue.jsno fix listedUBUNTU-CVE-2026-9595
Ubuntu:25.10vue.jsno fix listedUBUNTU-CVE-2026-9595
Ubuntu:26.04:LTSvue.jsno fix listedUBUNTU-CVE-2026-9595
Ubuntu:26.10vue.jsno fix listedUBUNTU-CVE-2026-9595
npmwebpack-dev-server5.2.5GHSA-mx8g-39q3-5c79

Affected products (as reported)

VendorProductVersions
webpack-dev-server webpack-dev-server 0 – before 5.2.5

Weakness: CWE-346, CWE-441 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

References