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

Not scored Published

An attacker can crash the proxy server by sending a long HTTP body if the server sets headers, causing a denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-6x33-pw7p-hmpq?

GHSA-6x33-pw7p-hmpq is a denial of service vulnerability in http-proxy, published on 4 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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

Which versions are affected by GHSA-6x33-pw7p-hmpq?

2 open source packages ship an affected version, including http-proxy.

PackageAffectedFixed in
http-proxy npmAll versions1.18.1
http-proxy npmAll versions1.18.1

How do I fix GHSA-6x33-pw7p-hmpq?

Upgrade http-proxy to 1.18.1 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is GHSA-6x33-pw7p-hmpq being exploited?

There is no known exploitation of GHSA-6x33-pw7p-hmpq in the wild and no public exploit code.

Sources

Is GHSA-6x33-pw7p-hmpq in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free