webpack-dev-server: Security problem with `node-forge`
GitHub Security Advisory reports that node-forge 0.9.0, which is an indirect dependency of webpack-dev-server 3.11.0 has a high severity problem: https://github.com/advisories/GHSA-92xj-mqp7-vmcj
Webpack Dev Server uses that package through a package called selfsigned, which tracks this problem here: https://github.com/jfromaniello/selfsigned/issues/41
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (6 by maintainers)
an alternative to manually editing yarn.lock file was,
@khhhum webpack-dev-server already allows the updated
selfsignedandnode-forge, a webpack-dev-server release isn’t required to use those updated dependencies.But it can be confusing to figure out how to update ‘indirect’ dependencies like this, and the tooling can be surprisingly unhelpful.
If you are using
yarn, the best way i have found is to open up theyarn.lockmanually, and delete the lines forselfsignedandnode-forge, and then runyarn install. It will insert the (new) latest allowable releases ofselfsignedandnode-forgeinto your yarn.lock, and you have updated your dependencies, no need for a webpack-dev-server release. See this blog post and this yarn issue. I remain surprised yarn doesn’t support a way of upgrading indirect dependencies less manually.If you are using
npmstraight without yarn or other alternatives, I’m not certain the approach, but there should be one that does not require awebpack-dev-serverrelease. If dependencies had to be re-released every time there was a new release of any of their own dependencies, that would be messy!Thanks! Not difficult if you are authorized to do a release of the dependency, or can get the attention of those who are! Others of us tried by filing an issue on the selfsigned project and failed, but perhaps being a maintainer of webpack-dev-server got their attention, or using a method of communication other than github issues? Anyway, thanks!
Fixed https://github.com/jfromaniello/selfsigned/releases/tag/v1.10.8, As you can see, this is usually not difficult. Just update lock files
@jrochkind I suggest to wait a little longer, I tried to contact the developers