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.11

Details

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

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.