Vulnerabilities in pkg:npm/v8n
PACKAGECVE-2022-35923 is a HIGH (CVSS 7.5) v8n vulnerable to inefficient regular vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting V8n libraries in the npm ecosystem. The issue involves v8n vulnerable to inefficient regular expression complexity. Remediation is available by upgrading affected packages to version 1.5.1.
pkg:npm/v8n
Vulnerability advisories affecting package pkg:npm/v8n. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-xrx9-gj26-5wx9 | CVE-2022-35923 | HIGH | v8n vulnerable to Inefficient Regular Expression Complexity |
CVE-2022-35923 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2022-35923
To remediate this vulnerability, upgrade all affected V8n dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install v8n@1.5.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls v8n
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2022-35923, inspect your project dependencies using npm:
npm ls v8n
Analyze the terminal output to locate any version of V8n in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.1), your application is affected.
Note: The npm ls v8n command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In V8n, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-35923 Affected V8n Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
v8n
|
npm |
< 1.5.1
|
1.5.1
|
References
Frequently Asked Questions
What is CVE-2022-35923?
Which V8n versions are affected?
What version fixes CVE-2022-35923?
Is v8n affected?
What is the CVSS score of CVE-2022-35923?
What CWE is associated with CVE-2022-35923?
How can I check npm dependencies for CVE-2022-35923?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xrx9-gj26-5wx9",
"modified" : "2022-10-07T07:33:44Z",
"published" : "2022-10-07T07:33:44Z",
"aliases" : [ "CVE-2022-35923" ],
"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",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "v8n"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.5.1"
} ]
} ]
} ],
"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"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1333", "CWE-400" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-10-07T07:33:44Z",
"nvd_published_at" : "2022-08-02T20:15:00Z"
}
}