node-http-proxy icon indicating copy to clipboard operation
node-http-proxy copied to clipboard

Please fix version of Library "follow-redirects" to eliminate CVE-2023-26159 issue

Open scarton opened this issue 1 year ago • 3 comments
trafficstars

Versions of the package follow-redirects before 1.15.4 are vulnerable to Improper Input Validation due to the improper handling of URLs by the url.parse() function. When new URL() throws an error, it can be manipulated to misinterpret the hostname. An attacker could exploit this weakness to redirect traffic to a malicious site, potentially leading to information disclosure, phishing attacks, or other security breaches.

Thank you.

scarton avatar Jan 16 '24 20:01 scarton

@indexzero @cronopio @jcrugzz @yawnt Any updates on if this is being addressed (#1571)?

ryanomor avatar Jan 19 '24 16:01 ryanomor

FYI - I got around this for now by overriding the follow-redirects library version in my package.json:

"overrides": { "http-server": { "http-proxy": { "follow-redirects": "^1.15.5" } } },

scarton avatar Jan 19 '24 17:01 scarton

Hello, The issue still seems to exist. Latest version of http-proxy (1.18.1) is still referencing old version of follow-redirects 1.0.0. Snyk is still reporting this vulnerability because of the reference to follow-redirects 1.0.0 version in package-lock.json being generated. Can you please take a look at this and fix the package.json for http-proxy module? Reference: https://github.com/http-party/node-http-proxy/blob/master/package.json npm-issue

kanticsurapaneni avatar Jan 24 '24 18:01 kanticsurapaneni