{"id":"GHSA-xrx9-gj26-5wx9","summary":"v8n vulnerable to Inefficient Regular Expression Complexity","details":"### Impact\nInefficient 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()`.\n\n### Patches\nv1.5.1\n\n### References\n[huntr.dev report](https://huntr.dev/bounties/2d92f644-593b-43b4-bfd1-c8042ac60609)\n[_Regular Expression Denial of Service (ReDoS) and Catastrophic Backtracking_](https://snyk.io/blog/redos-and-catastrophic-backtracking/)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [v8n issues list](https://github.com/imbrn/v8n)\n* Email us at [brunodev02221@gmail.com](mailto:brunodev02221@gmail.com)\n","aliases":["CVE-2022-35923"],"modified":"2023-11-01T04:59:23.736260Z","published":"2022-10-07T07:33:44Z","database_specific":{"github_reviewed_at":"2022-10-07T07:33:44Z","nvd_published_at":"2022-08-02T20:15:00Z","cwe_ids":["CWE-1333","CWE-400"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/imbrn/v8n/security/advisories/GHSA-xrx9-gj26-5wx9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-35923"},{"type":"WEB","url":"https://github.com/imbrn/v8n/commit/92393862156fad190c05ec3f6e2bc73308dcd2f9"},{"type":"PACKAGE","url":"https://github.com/imbrn/v8n"},{"type":"WEB","url":"https://huntr.dev/bounties/2d92f644-593b-43b4-bfd1-c8042ac60609"}],"affected":[{"package":{"name":"v8n","ecosystem":"npm","purl":"pkg:npm/v8n"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.5.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/10/GHSA-xrx9-gj26-5wx9/GHSA-xrx9-gj26-5wx9.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}