CVE-2017-16129 superagent vulnerable to zip bomb attacks

Medium 5.9 Published Updated

An attacker controlling the request URL can cause excessive resource consumption via ZIP bomb responses, leading to 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 CVE-2017-16129?

CVE-2017-16129 is a medium-severity denial of service vulnerability in HackerOne superagent node module, published on 7 Jun 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The HTTP client module superagent is vulnerable to ZIP bomb attacks. In a ZIP bomb attack, the HTTP server replies with a compressed response that becomes several magnitudes larger once uncompressed. If a client does not take special care when processing such responses, it may result in excessive CPU and/or memory consumption. An attacker might exploit such a weakness for a DoS attack. To exploit this the attacker must control the location (URL) that superagent makes a request to.

Weakness: CWE-400, CWE-409

Which versions are affected by CVE-2017-16129?

2 open source packages ship an affected version, including superagent. It affects 1 product.

PackageAffectedFixed in
superagent npmAll versions3.7.0
superagent npmAll versions3.7.0

Products include Superagent Project Superagent.

How do I fix CVE-2017-16129?

Upgrade superagent to 3.7.0 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 CVE-2017-16129 being exploited?

There is no known exploitation of CVE-2017-16129 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2017-16129, GHSA-8225-6cvr-8pqp, UBUNTU-CVE-2017-16129.

Is CVE-2017-16129 in your software?

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

Check your SBOMs for free