GHSA-6x33-pw7p-hmpq
7.5high
Denial of Service in http-proxy
- Severity
- 7.5high CVSS:3.1 by GitHub
- Published
- Last changed
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
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| http-proxy (npm) | before 1.18.1 | GitHub Advisory Database |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-6x33-pw7p-hmpq changed 2024-01-29 | CC-BY-4.0 |