{"id":"GHSA-6x33-pw7p-hmpq","summary":"Denial of Service in http-proxy","details":"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","modified":"2024-01-29T20:57:00Z","published":"2020-09-04T17:59:49Z","database_specific":{"nvd_published_at":null,"cwe_ids":["CWE-184","CWE-693"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2020-08-31T19:01:05Z"},"references":[{"type":"WEB","url":"https://github.com/http-party/node-http-proxy/pull/1447/commits/4718119ffbe895aecd9be0d6430357d44b4c7fd3"},{"type":"WEB","url":"https://github.com/http-party/node-http-proxy/pull/1447/files"},{"type":"WEB","url":"https://www.npmjs.com/advisories/1486"}],"affected":[{"package":{"name":"http-proxy","ecosystem":"npm","purl":"pkg:npm/http-proxy"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.18.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-6x33-pw7p-hmpq/GHSA-6x33-pw7p-hmpq.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}