GitHub Advisoryadvisory · npm
GHSA-cf66-xwfp-gvc4 Missing Origin Validation in webpack-dev-server
HIGH
Official page ↗
- Aliases
- CVE-2018-14732
- Ecosystem
- npm
- Packages
- webpack-dev-server
- Severity
- High
- CVSS vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-20
- Reviewed
- 2020-06-16
Affected packages
• npm webpack-dev-server: < 3.1.11 → fixed in 3.1.11
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.
Related
Alias · CVE (1)
- CVE-2018-14732 An issue was discovered in lib/Server.js in webpack-dev-server before 3.1.6. vulnerability
Weakness · CWE (1)
- CWE-20 Improper Input Validation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-14732 advisory
- https://github.com/webpack/webpack-dev-server/issues/1445 web
- https://github.com/webpack/webpack-dev-server/issues/1620 web
- https://github.com/webpack/webpack-dev-server/commit/f18e5adf123221a1015be63e1ca2491ca45b8d10 web
- https://github.com/webpack/webpack-dev-server package
- https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md#3111-2018-12-21 web
- https://www.npmjs.com/advisories/725 web