logo

CVE-2022-35923 v8n

Package

Manager: npm
Name: v8n
Vulnerable Version: >=0 <1.5.1

Severity

Level: High

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

EPSS: 0.00403 pctl0.60072

Details

v8n vulnerable to Inefficient Regular Expression Complexity ### 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](https://huntr.dev/bounties/2d92f644-593b-43b4-bfd1-c8042ac60609) [_Regular Expression Denial of Service (ReDoS) and Catastrophic Backtracking_](https://snyk.io/blog/redos-and-catastrophic-backtracking/) ### For more information If you have any questions or comments about this advisory: * Open an issue in [v8n issues list](https://github.com/imbrn/v8n) * Email us at [brunodev02221@gmail.com](mailto:brunodev02221@gmail.com)

Metadata

Created: 2022-10-07T07:33:44Z
Modified: 2022-10-07T07:33:44Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/10/GHSA-xrx9-gj26-5wx9/GHSA-xrx9-gj26-5wx9.json
CWE IDs: ["CWE-1333", "CWE-400"]
Alternative ID: GHSA-xrx9-gj26-5wx9
Finding: F211
Auto approve: 1