Vulnerabilities/

v8n vulnerable to Inefficient Regular Expression Complexity

Severity:
High

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:

References

Related Issues

Tags:
npm
v8n
Anything's wrong? Let us know Last updated on July 31, 2023