CVE-2026-9595
published medium CVSS 3.1 · 5.3webpack-dev-server vulnerable to HMR WebSocket interception via permissive user proxies
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| webpack-dev-server | — | webpack-dev-server0 to < 5.2.5 (affected · semver) · 5.2.5 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | openjs |
| Red Hat Enterprise Linux | RHEL-10 | rh-podman-desktopsrc | Advisory build | 1.1.2-1.el10_2 | RHSA-2026:57590 |
| Red Hat Enterprise Linux | RHEL-10 | rh-podman-desktopx86_64 | Advisory build | 1.1.2-1.el10_2 | RHSA-2026:57590 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- openjs · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| webpack-dev-server | webpack-dev-server | 0 to < 5.2.5 (affected · semver)5.2.5 (unaffected · semver)Default: unaffected | openjs · cna |
Weaknesses
2- CWE-346 CWE-346: Origin Validation Error
- CWE-441 CWE-441: Unintended Proxy or Intermediary ('Confused Deputy')
References
5- https://cna.openjsf.org/security-advisories.html
- https://github.com/facebook/create-react-app/pull/7444
- https://github.com/vuejs/vue-cli/commit/72ba7505aff2a8314e82aa5082379a77504a1fcb
- https://github.com/webpack/webpack-dev-server/pull/4316
- https://github.com/webpack/webpack-dev-server/security/advisories/GHSA-mx8g-39q3-5c79
Provider assertions
2openjs · cna
webpack-dev-server vulnerable to HMR WebSocket interception via permissive user proxies
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b54086d26077bf5ede61eee294471acd00f545f60c1cbbbb741a5842001cb79f
- Ingested
- 23 Sep 2026, 09:41:39 UTC
- Source record
- Official CVE record