{"id":"CVE-2022-35923","published":"2022-08-02T20:10:11Z","modified":"2025-04-22T17:45:31Z","title":"Inefficient Regular Expression Complexity in v8n","vendor":"imbrn","product":"v8n","tier":"tail","description":{"text":"v8n is a javascript validation library. Versions of v8n prior to 1.5.1 were found to have an inefficient regular expression complexity in the `lowercase()` and `uppercase()` regex which could lead to a denial of service attack. In testing of the `lowercase()` function a payload of 'a' + 'a'.repeat(i) + 'A' with 32 leading characters took 29443 ms to execute. The same issue happens with uppercase(). Users are advised to upgrade. There are no known workarounds for this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01763,"percentile":0.78597,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/imbrn/v8n/security/advisories/GHSA-xrx9-gj26-5wx9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/imbrn/v8n/commit/92393862156fad190c05ec3f6e2bc73308dcd2f9","tags":["x_refsource_MISC"]},{"url":"https://huntr.dev/bounties/2d92f644-593b-43b4-bfd1-c8042ac60609/","tags":["x_refsource_MISC"]}],"priority":{"score":21.0,"factors":[{"name":"EPSS percentile","points":15.72},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"imbrn","affectedVersions":[{"vendor":"imbrn","product":"v8n","versions":["< 1.5.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-22T15:40:02.652401Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"v8n","vulnerableRanges":["<1.5.1"],"patched":["1.5.1"],"from":["GHSA-xrx9-gj26-5wx9"],"provenance":"source"}],"summary":{"text":"The v8n JavaScript validation library, prior to version 1.5.1, contains an inefficient regular expression in its lowercase() and uppercase() validators that causes excessive processing time on crafted input. An attacker with network access can send a specially crafted string to an application using these functions, without authentication or user interaction, to trigger a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:12:43Z"},"euvd":{"id":"EUVD-2022-7187","exploited":false,"provenance":"source"}}