High, CVSS 7.5npmAmendedPublished
v8n vulnerable to Inefficient Regular Expression Complexity
CVE-2022-35923 · GHSA-xrx9-gj26-5wx9
- Affected
- npm v8n < 1.5.1
- Fixed in
- 1.5.1· Vendor fix available
- Issue
- Impact 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(). Patches v1.5.1 References huntr.dev report Regular Expression Denial of Service (ReDoS) and Catastrophic Backtracking For more information If you have any questions or comments about this advisory: Open an issue in v8n issues list Email us at brunodev02221@gmail.com
Recommended action: Upgrade to 1.5.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.