{"id":"CVE-2022-35923","aliases":["GHSA-xrx9-gj26-5wx9"],"url":"https://o3.security/vulnerability/CVE-2022-35923","summary":"Inefficient Regular Expression Complexity in v8n","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","published":"2022-08-02T20:10:11Z","modified":"2026-10-28T02:30:38.591813410Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"npm","name":"v8n","fixedVersion":"1.5.1"}],"fix":{"url":"https://github.com/imbrn/v8n/commit/92393862156fad190c05ec3f6e2bc73308dcd2f9","label":"imbrn/v8n@9239386"},"references":[{"type":"WEB","url":"https://huntr.dev/bounties/2d92f644-593b-43b4-bfd1-c8042ac60609/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35923.json"},{"type":"ADVISORY","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":"FIX","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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:30:38.591813410Z"}}