CVE-2018-14732
Missing Origin Validation in webpack-dev-server
Description
Versions of webpack-dev-server before 3.1.10 are missing origin validation on the websocket server. This vulnerability allows a remote attacker to steal a developer's source code because the origin of requests to the websocket server that is used for Hot Module Replacement (HMR) are not validated.
Recommendation
For webpack-dev-server update to version 3.1.11 or later.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » webpack-dev-servervia npm webpack-dev-server | < 3.1.11 | 3.1.11 |
| org.webjars.npm » webpack-dev-servervia npm webpack-dev-server | < 3.1.11 | 3.1.11 |
Blast radius
66% of the dependent artifacts (4) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 13 |
Most used dependents
- org.webjars.npm » swagger-ui1 usages
- org.webjars.npm » react-web0 usages
- org.webjars.npm » angular-cli0 usages
- org.webjars.npm » swagger-editor0 usages
- org.mvnpm » angular-cli0 usages
- org.webjars.npm » react-scripts0 usages
Computed from the dependency graph of build 20261203.1441 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Advisory | NVD CVE-2018-14732 | nvd.nist.gov |
| Package | webpack/webpack-dev-server | github.com |
| Web | webpack/webpack-dev-server issue #1445 | github.com |
| Web | webpack/webpack-dev-server issue #1620 | github.com |
| Web | webpack/webpack-dev-server commit f18e5ad | github.com |
| Web | webpack/webpack-dev-server CHANGELOG.md | github.com |
| Web | advisories/725 | npmjs.com |
