CVE-2026-9595

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

MEDIUM
4.3
CVSS Score
Published: June 15, 2026 at 03:00 PM UTC
Updated: June 17, 2026 at 11:05 AM UTC
2 products affected across 2 vendorsWebpack Dev ServerJs Webpack Dev Server

Using webpack-dev-server by webpack-dev-server?

Get instant alerts when new vulnerabilities affect webpack-dev-server - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.3
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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 [email protected]. 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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 5.2.5
Affected range stops below 5.2.5, so it looks safe — our inference, not a vendor statement
v < 5.2.5
Vendor states this is fixed in 5.2.5 (unaffected)

SSVC — Action Prioritization

SSVCNo known exploitAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW
Vector?

Quick Info

StatusANALYZED
CWE
CWE-346CWE-441

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card