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

- Severity: Medium 5.3 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-06-15T15:00:21.488Z
- Modified: 2026-09-10T03:51:09.136Z
- Also known as: GHSA-mx8g-39q3-5c79
- Weaknesses: CWE-346, CWE-441
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: openjs

## 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.

(As written by CVE List.)

## Affected

- webpack-dev-server webpack-dev-server: before 5.2.5 (not affected: 5.2.5)
- webpack-dev-server (npm): before 5.2.5
- webpack.js webpack-dev-server: before 5.2.5

## Every score

- openjs: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/webpack/webpack-dev-server/security/advisories/GHSA-mx8g-39q3-5c79> (mitigation, vendor-advisory, web)
- <https://cna.openjsf.org/security-advisories.html> (vendor-advisory, web)
- <https://github.com/webpack/webpack-dev-server/pull/4316> (issue-tracking, patch, web)
- <https://github.com/vuejs/vue-cli/commit/72ba7505aff2a8314e82aa5082379a77504a1fcb> (patch, web)
- <https://github.com/facebook/create-react-app/pull/7444> (issue-tracking, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-9595> (advisory)
- <https://github.com/webpack/webpack-dev-server> (package)

## Sources

- CVE List: [CVE-2026-9595](https://www.cve.org/CVERecord?id=CVE-2026-9595), CVE Terms of Use, modified 2026-06-15
- GitHub Advisory Database: [GHSA-mx8g-39q3-5c79](https://github.com/advisories/GHSA-mx8g-39q3-5c79), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-9595](https://nvd.nist.gov/vuln/detail/CVE-2026-9595), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-9595 · Whole record: https://cve.day/CVE-2026-9595.json · Rebuilt by cve.day 2026-11-25T22:59:24.642Z
