GHSA-6x33-pw7p-hmpq Denial of Service in http-proxy
HighCVSS 7.5
- Published
- Updated
- Exploit status
- No public exploit known
Description
Versions of http-proxy prior to 1.18.1 are vulnerable to Denial of Service. An HTTP request with a long body triggers an ERR_HTTP_HEADERS_SENT unhandled exception that crashes the proxy server. This is only possible when the proxy server sets headers in the proxy request using the proxyReq.setHeader function.
For a proxy server running on http://localhost:3000, the following curl request triggers the unhandled exception:
curl -XPOST http://localhost:3000 -d "$(python -c 'print("x"*1025)')"
Recommendation
Upgrade to version 1.18.1 or later
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm http-proxy(npm) | < 1.18.1 | 1.18.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm http-proxy(npm) | < 1.18.1 | 1.18.1 |
References
- github.com patch
- www.npmjs.com
- github.com patch
- github.com