CVE-2026-112085webpack-dev-server vulnerable to cross-origin WebSocket access via proxied upgrades
webpack-dev-server is a development server that provides live reloading for webpack projects. In versions before 5.2.7 and in version 6.0.0, when a proxy entry is configured to forward WebSockets, the server forwards non-HMR WebSocket upgrade requests to the proxy target without validating the Host or Origin headers, so the allowedHosts protection does not apply to those proxied upgrades. A malicious web page visited by a developer can open a cross-origin WebSocket through the dev server and read from and write to the proxied backend, even when the server is bound to loopback. The issue is fixed in webpack-dev-server 5.2.7 and 6.1.0, where proxied WebSocket upgrades pass the same Host and Origin validation as the HMR WebSocket, and users should upgrade to one of those versions or later. As a workaround, omit WebSocket forwarding from proxy entries that do not need it and scope the proxy to specific paths.
What to do
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | node-webpack | Fix pending | UBUNTU-CVE-2026-112085 | |
| Ubuntu 26.04 | node-webpack | Under investigation | UBUNTU-CVE-2026-112085 | |
| Ubuntu 24.04 | node-webpack | Under investigation | UBUNTU-CVE-2026-112085 | |
| Ubuntu 22.04 | node-webpack | Under investigation | UBUNTU-CVE-2026-112085 | |
| Ubuntu 20.04 | node-webpack | Fix pending | UBUNTU-CVE-2026-112085 | |
| Ubuntu 18.04 | node-webpack | Fix pending | UBUNTU-CVE-2026-112085 |
What the vendor says
As published in the CVE record by openjs, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- webpack-dev-server: affected: before 5.2.7, 5.2.7 not affected, 6.0.0 to before 6.1.0, 6.1.0 not affected; fixed in
5.2.7,6.1.0
References
- https://github.com/webpack/webpack-dev-server/security/advisories/GHSA-cfqc-fj3v-j925
- https://cna.openjsf.org/security-advisories.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.