webpack-dev-server vulnerable to cross-origin WebSocket access via proxied upgrades
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| webpack-dev-server | webpack-dev-server | unaffected |
|
Configuration 1 [-]
|
No data.
No data available yet.
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.147% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Webpack.js
Webpack.js webpack-dev-server |
|
| CPEs | cpe:2.3:a:webpack.js:webpack-dev-server:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Webpack.js
Webpack.js webpack-dev-server |
| Type | Values Removed | Values Added |
|---|---|---|
| Weaknesses | CWE-940 | |
| References |
| |
| Metrics |
threat_severity
|
threat_severity
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | webpack-dev-server vulnerable to cross-origin WebSocket access via proxied upgrades | |
| Weaknesses | CWE-1385 CWE-346 |
|
| References |
| |
| Metrics |
cvssV3_1
|