Vulnerability library
Security checkJuly 31, 2023

v8n vulnerable to Inefficient Regular Expression Complexity

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmv8n

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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

Could your website be exposed too?

SmartScanner can check your website for v8n vulnerable to Inefficient Regular Expression Complexity and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated July 31, 2023