CVE-2022-35923
HIGH 7.5CVSS 3.1v8n vulnerable to Inefficient Regular Expression Complexity
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.
- Published
- 2 Aug 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-1333CWE-400
- Also known as
- GHSA-xrx9-gj26-5wx9
- Sources
- NVDJSONOSV GHSA-xrx9-gj26-5wx9JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | v8n_project | v8ncpe:2.3:a:v8n_project:v8n:*:*:*:*:*:node.js:*:* |
< 1.5.1 | 1.5.1 |
| OSV | npm | v8n | < 1.5.1 | 1.5.1 |
References
- https://github.com/imbrn/v8n/commit/92393862156fad190c05ec3f6e2bc73308dcd2f9 · Patch, Third Party Advisory, WEB
- https://github.com/imbrn/v8n/security/advisories/GHSA-xrx9-gj26-5wx9 · Third Party Advisory, WEB
- https://huntr.dev/bounties/2d92f644-593b-43b4-bfd1-c8042ac60609/ · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-35923 · ADVISORY
- https://github.com/imbrn/v8n · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 2 Aug 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 7 Oct 2022)