Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. http-proxy
  4. ›
  5. GMS-2020-737

GMS-2020-737: Denial of Service in http-proxy

September 4, 2020

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

References

  • github.com/advisories/GHSA-6x33-pw7p-hmpq
  • github.com/http-party/node-http-proxy/pull/1447/files
  • www.npmjs.com/advisories/1486

Code Behaviors & Features

Detect and mitigate GMS-2020-737 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.18.1

Fixed versions

  • 1.18.1

Solution

Upgrade to version 1.18.1 or above.

Source file

npm/http-proxy/GMS-2020-737.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:53 +0000.