{"id":"GHSA-6x33-pw7p-hmpq","aliases":["GHSA-6x33-pw7p-hmpq"],"related":[],"kind":"vulnerability","state":"published","title":"Denial of Service in http-proxy","summary":"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.   \n\nFor a proxy server running on `http://localhost:3000`, the following curl request triggers the unhandled exception:  \n```curl -XPOST http://localhost:3000 -d \"$(python -c 'print(\"x\"*1025)')\"```\n\n\n## Recommendation\n\nUpgrade to version 1.18.1 or later","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.   \n\nFor a proxy server running on `http://localhost:3000`, the following curl request triggers the unhandled exception:  \n```curl -XPOST http://localhost:3000 -d \"$(python -c 'print(\"x\"*1025)')\"```\n\n\n## Recommendation\n\nUpgrade to version 1.18.1 or later","format":"markdown","source":"ghsa"}],"published":"2020-09-04T17:59:49.000Z","modified":"2024-01-29T20:57:00.000Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-184","CWE-693"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.18.1"}],"ecosystem":"npm","package":"http-proxy","purl":"pkg:npm/http-proxy","source":"ghsa"}],"references":[{"url":"https://github.com/http-party/node-http-proxy/pull/1447/commits/4718119ffbe895aecd9be0d6430357d44b4c7fd3","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/http-party/node-http-proxy/pull/1447/files","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1486","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6x33-pw7p-hmpq","url":"https://github.com/advisories/GHSA-6x33-pw7p-hmpq","licence":"CC-BY-4.0","modified":"2024-01-29T20:57:00.000Z"}],"updatedAt":"2026-11-25T22:56:44.443Z"}