HighGHSA-cf66-xwfp-gvc4CVE-2018-14732
Missing Origin Validation in webpack-dev-server
Published 4 Jan 2019 · Updated 8 Nov 2023
Affected package
- Affected
- <3.1.11
- Fixed in
- 3.1.11
Update to the fixed version for your release line, for example:
npm install webpack-dev-server@3.1.11Details
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.
Is GHSA-cf66-xwfp-gvc4 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected webpack-dev-server, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2018-14732
- Linkgithub.com/webpack/webpack-dev-server/issues/1445
- Linkgithub.com/webpack/webpack-dev-server/issues/1620
- Linkgithub.com/webpack/webpack-dev-server/commit/f18e5adf123221a1015be63e1ca2491ca45b8d10
- Packagegithub.com/webpack/webpack-dev-server
- Linkgithub.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md#3111-2018-12-21
- Linkwww.npmjs.com/advisories/725
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.