You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
http-proxy, a dependency of webpack-dev-server has a vulnerability.
=== npm audit security report ===
Manual Review
Some vulnerabilities require your attention to resolve
Visit https://go.npm.me/audit-guide for additional guidance
High Denial of Service
Package http-proxy
Patched in No patch available
Dependency of webpack-dev-server [dev]
Path webpack-dev-server > http-proxy-middleware > http-proxy
More info https://npmjs.com/advisories/1486
Reacted by Payam Mousavi, Suzanne Aitchison, Robert Jeżyk, Josh Randall, Andrew Tereshkin, Bazze, Trevor Eyre, Sergei Kriger, toadskipper, Hugo Hulsebosch and 15 more
@evilebottnawi, Updating locks is possible but a fragile solution. If possible to bump WDS v3 with a version of http-proxy-middleware without vulnerability and still with Node v6 support, why not? That should not introduce a breaking change anymore, isn't it? Do you see any risks?
This means that webpack-dev-server runs fine on http-proxy-middleware 1.0.4? Is it possible to upgrade it? I can make a pull request of course, but I don't know this package well enough to be aware of eventual consequences of that upgrade.
Activity
[-]http-proxy[/-][+]http-proxy vulnerability[/+]aitchiss commentedon May 15, 2020
Came here to report the same - it's causing failing builds with npm audit - hoping a quick fix is on its way
alexander-akait commentedon May 15, 2020
Please open an issue in
http-proxy-middlewareorhttp-proxy, all version affected ofhttp-proxy, we can't fix it on our sidetrevoreyre commentedon May 15, 2020
There is an open issue in
http-proxyfor this. http-party/node-http-proxy#1446I think this issue should remain open, since
webpack-dev-serverwill need to be patched with the fixed version ofhttp-proxyonce it's available.sailfish009 commentedon May 16, 2020
chimurai commentedon May 17, 2020
Hi, maintainer of
http-proxy-middleware.http-party/node-http-proxy#1447 just got published in
http-proxy@1.18.1Will patch
http-proxy-middlewaresoon.Any reason for WDS to support deprecated node >=6.11.5?
https://github.com/webpack/webpack-dev-server/blob/master/package.json#L14
http-proxy-middleware started dropping support for node 6 in
0.20.0If possible, migrate to http-proxy-middleware@1.x.x ; Which supports node 8 and up.
Only breaking change is node support and explicit import of
http-proxy-middleware.More info: https://github.com/chimurai/http-proxy-middleware/releases/tag/v1.0.0
I know it's a constant struggle to support legacy, fix security issues versus moving on...
Let me know if the older version needs patching too (0.19.x)
edit: refreshing/updating lockfiles should already work
vtereshyn commentedon May 18, 2020
Fixed inside #2616
chimurai commentedon May 19, 2020
Just published
http-proxy-middleware@0.19.2Hopefully this'll ease the process to patch the current version of WDS without rushing to release WDS@4.0
alexander-akait commentedon May 20, 2020
Great, so just update your lock files and all will be fine 👍
koltyakov commentedon May 20, 2020
@evilebottnawi, Updating locks is possible but a fragile solution. If possible to bump WDS v3 with a version of
http-proxy-middlewarewithout vulnerability and still with Node v6 support, why not? That should not introduce a breaking change anymore, isn't it? Do you see any risks?pamit commentedon May 26, 2020
Hi everyone. Is there any update on this?
mikemountjoy99 commentedon Jun 3, 2020
What is the current status on a fix for this vulnerability?
I see http-proxy have merged a patch
https://github.com/http-party/node-http-proxy/pull/1447/files
filmic commentedon Jun 3, 2020
You just need to force yarn to update
http-proxyindirect dependency version in the lock file (to version 1.18.1).Yarn does not upgrade indirect dependencies when
yarn upgradeis executed (yarnpkg/yarn#4986).As workaround run:
yarn remove webpack-dev-serveryarn add webpack-dev-server -Dmikemountjoy99 commentedon Jun 10, 2020
Editing package.json and adding an entry for http-proxy-middleware under resolutions forced the package to install
I then ran yarn & yarn audit
Running an audit showed the high severity warning had gone away:
Output:
jasverix commentedon Sep 29, 2020
This means that webpack-dev-server runs fine on http-proxy-middleware 1.0.4? Is it possible to upgrade it? I can make a pull request of course, but I don't know this package well enough to be aware of eventual consequences of that upgrade.
chrislujan commentedon Oct 14, 2020
I would also like to see this done as it is causing our engineers difficulties
alexander-akait commentedon Nov 19, 2020
Fixed in v4 branch (release will be soon)