CVE-2017-16116 Regular Expression Denial of Service in string package

High 7.5 Published Updated

Attackers can cause denial of service in applications using the string module by sending crafted input to specific methods.

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

What is CVE-2017-16116?

CVE-2017-16116 is a high-severity denial of service vulnerability in HackerOne string 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 string module is a module that provides extra string operations. The string module is vulnerable to regular expression denial of service when specifically crafted untrusted user input is passed into the underscore or unescapeHTML methods.

Weakness: CWE-400

Which versions are affected by CVE-2017-16116?

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

PackageAffectedFixed in
string npmAll versions to 3.3.3None
string npmAll versions to 3.3.3None

Products include String Project String.

How do I fix CVE-2017-16116?

No fix has been published for CVE-2017-16116 yet. Limit exposure of the affected software until one is available.

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-16116 being exploited?

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

Sources

Also known as GHSA-g36h-6r4f-3mqp.

Is CVE-2017-16116 in your software?

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

Check your SBOMs for free