# GHSA-6x33-pw7p-hmpq: Denial of Service in http-proxy

- Severity: High 7.5 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-04T17:59:49.000Z
- Modified: 2024-01-29T20:57:00.000Z
- Weaknesses: CWE-184, CWE-693

## 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

(As written by GitHub Advisory Database.)

## Affected

- http-proxy (npm): before 1.18.1

## References

- <https://github.com/http-party/node-http-proxy/pull/1447/commits/4718119ffbe895aecd9be0d6430357d44b4c7fd3> (web)
- <https://github.com/http-party/node-http-proxy/pull/1447/files> (web)
- <https://www.npmjs.com/advisories/1486> (web)

## Sources

- GitHub Advisory Database: [GHSA-6x33-pw7p-hmpq](https://github.com/advisories/GHSA-6x33-pw7p-hmpq), CC-BY-4.0, modified 2024-01-29

---

Page: https://cve.day/GHSA-6x33-pw7p-hmpq · Whole record: https://cve.day/GHSA-6x33-pw7p-hmpq.json · Rebuilt by cve.day 2026-11-25T22:56:44.443Z
