CVE-2017-16023 Regular Expression Denial of Service in decamelize
Attackers can cause denial of service in the Decamelize library by providing unescaped separator values to its regular expression processing.
- 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-16023?
CVE-2017-16023 is a high-severity denial of service vulnerability in HackerOne decamelize node module, published on 4 Jun 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Decamelize is used to convert a dash/dot/underscore/space separated string to camelCase. Decamelize 1.1.0 through 1.1.1 uses regular expressions to evaluate a string and takes unescaped separator values, which can be used to create a denial of service attack.
Which versions are affected by CVE-2017-16023?
2 open source packages ship an affected version, including decamelize. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
decamelize npm | From 1.1.0 | 1.1.2 |
decamelize npm | From 1.1.0 | 1.1.2 |
Products include Decamelize Project Decamelize.
How do I fix CVE-2017-16023?
Upgrade decamelize to 1.1.2 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-16023 being exploited?
There is no known exploitation of CVE-2017-16023 in the wild and no public exploit code.
Sources
Also known as GHSA-q5c4-39f5-m68j.