CVE-2015-8858 Regular Expression Denial of Service in uglify-js

High 7.5 Published Updated

Attackers can cause denial of service via CPU exhaustion in the uglify-js library using crafted input, requiring an upgrade to mitigate.

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

What is CVE-2015-8858?

CVE-2015-8858 is a high-severity denial of service vulnerability in n/a, published on 23 Jan 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The uglify-js package before 2.6.0 for Node.js allows attackers to cause a denial of service (CPU consumption) via crafted input in a parse call, aka a "regular expression denial of service (ReDoS)."

Weakness: CWE-399

Which versions are affected by CVE-2015-8858?

2 open source packages ship an affected version, including uglify-js. It affects 1 product.

PackageAffectedFixed in
uglify-js npmAll versions2.6.0
uglify-js npmAll versions2.6.0

Products include Uglifyjs Project Uglifyjs.

How do I fix CVE-2015-8858?

Upgrade uglify-js to 2.6.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-2015-8858 being exploited?

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

Sources

Also known as DEBIAN-CVE-2015-8858, GHSA-c9f4-xj24-8jqx, UBUNTU-CVE-2015-8858.

Is CVE-2015-8858 in your software?

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

Check your SBOMs for free