Description
Inefficient regular expression complexity of lowercase() and uppercase() regex could lead to a denial of service attack. With a formed payload 'a' + 'a'.repeat(i) + 'A', only 32 characters payload could take 29443 ms time execution when testing lowercase(). The same issue happens with uppercase().
Recommendation
Update the v8n package to the latest compatible version. Followings are version details:
- Affected version(s): < 1.5.1
- Patched version(s): 1.5.1
References
Related Issues
- Moment.js vulnerable to Inefficient Regular Expression Complexity - CVE-2022-31129
- Cattown is Vulnerable to Uncontrolled Resource Consumption through Inefficient Regular Expression Complexity - CVE-2025-58451
- inflect vulnerable to Inefficient Regular Expression Complexity - CVE-2021-3820
- markdown-it vulnerable to Inefficient Regular Expression Complexity - CVE-2015-10005
You might also like:
- Tags:
- npm
- v8n
Anything's wrong? Let us know Last updated on July 31, 2023


