Inefficient Regular Expression Complexity in v8n
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-400.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| imbrn | v8n | before 1.5.1 | 1.5.1 | Patch available | CNA |
| — | v8n (npm) | before 1.5.1 | 1.5.1 | Patch available | GHSA-xrx9-gj26-5wx9 |
- v8n Vendorimbrn Affected before 1.5.1 Fixed in 1.5.1 Patch available CNA
- v8n (npm) Vendor— Affected before 1.5.1 Fixed in 1.5.1 Patch available GHSA-xrx9-gj26-5wx9
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:v8n_project:v8n:*:*:*:*:*:node.js:*:* | before 1.5.1 | Vulnerable | V8n Project |
- cpe:2.3:a:v8n_project:v8n:*:*:*:*:*:node.js:*:* Versions before 1.5.1 Vulnerable ·V8n Project
Remediation
- Fix · CNA v8n (imbrn) Fixed in 1.5.1
- Fix · GHSA-xrx9-gj26-5wx9 v8n (npm) Fixed in 1.5.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-35923
- 2026-10-03 Alias added: GHSA-xrx9-gj26-5wx9
References
Advisory 2
Sources
- CVE-2022-35923 · CVE Program
- CVE-2022-35923 · NVD
- FIRST EPSS
- GHSA-xrx9-gj26-5wx9 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences