CVE-2017-16023: Regular Expression Denial of Service in decamelize

decamelize Updated 02 Oct 2025

Summary

24/07/2018
Yes i
High
7.5

CVE-2017-16023: Regular Expression Denial of Service in decamelize. Affects decamelize versions >= 1.1.0, < 1.1.2. Fixed in 1.1.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The decamelize package is an npm package that provides a function for converting camel case strings to kebab case. It is commonly used in JavaScript applications to transform variable names or object keys. However, versions of decamelize prior to 1.1.2 are vulnerable to a regular expression denial of service (ReDoS) attack when user input is directly passed into the decamelize function.

Vulnerability Detail

The vulnerability in decamelize arises from the way it handles user input. By passing specially crafted input, an attacker can cause the regular expression used by decamelize to exhibit exponential time complexity, leading to a denial of service. This can result in excessive CPU usage and potentially impact the availability of the application. The vulnerability is rated as HIGH severity and has been assigned the Common Weakness Enumeration (CWE) ID CWE-400.

How To Fix

Latest published version: 7.0.0 as of 22 Oct 2026

npm install decamelize@7.0.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.1.2

This is the first release that contains the fix.

npm install decamelize@1.1.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

The decamelize package prior to version 1.1.2 is vulnerable to a regular expression denial of service attack. It is recommended to update to the latest version of the package to mitigate this vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for decamelize →

Share this vulnerability

FAQ

The vulnerability can be exploited to launch a denial of service attack, potentially impacting the availability of the affected application.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply upload your package-lock.json file and Vulert will provide real-time alerts for open-source vulnerabilities.

No, only versions prior to 1.1.2 are vulnerable to this specific regular expression denial of service vulnerability.

There is no known public exploit for this vulnerability at the time of this advisory.

How To Fix

Latest published version: 7.0.0 as of 22 Oct 2026

npm install decamelize@7.0.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.1.2

This is the first release that contains the fix.

npm install decamelize@1.1.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback