Vulnerabilities in pkg:npm/nitrado.js
PACKAGECVE-2022-36034 is a HIGH (CVSS 7.5) polynomial regular expression used on vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting Nitrado.js libraries in the npm ecosystem. The issue involves polynomial regular expression used on uncontrolled data in nitrado.js. Remediation is available by upgrading affected packages to version 0.2.5.
pkg:npm/nitrado.js
Vulnerability advisories affecting package pkg:npm/nitrado.js. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-vqc4-v8hc-h2jg | CVE-2022-36034 | HIGH | Polynomial regular expression used on uncontrolled data in nitrado.js |
CVE-2022-36034 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-36034
To remediate this vulnerability, upgrade all affected Nitrado.js 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 nitrado.js@0.2.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls nitrado.js
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2022-36034, inspect your project dependencies using npm:
npm ls nitrado.js
Analyze the terminal output to locate any version of Nitrado.js in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.5), your application is affected.
Note: The npm ls nitrado.js 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-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. In Nitrado.js, 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-36034 Affected Nitrado.js Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
nitrado.js
|
npm |
< 0.2.5
|
0.2.5
|
References
Frequently Asked Questions
What is CVE-2022-36034?
Which Nitrado.js versions are affected?
What version fixes CVE-2022-36034?
Is nitrado.js affected?
What is the CVSS score of CVE-2022-36034?
What CWE is associated with CVE-2022-36034?
How can I check npm dependencies for CVE-2022-36034?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vqc4-v8hc-h2jg",
"modified" : "2022-09-08T14:11:35Z",
"published" : "2022-08-31T22:23:39Z",
"aliases" : [ "CVE-2022-36034" ],
"summary" : "Polynomial regular expression used on uncontrolled data in nitrado.js",
"details" : "### Impact\nPossible ReDoS with lib input of `{{` and with many repetitions of `{{|`\n\n### Patches\nPatched in all versions above `0.2.5`\n\n### Workarounds\nNo known work arounds.\n\n### References\n- OWASP: [Regular expression Denial of Service - ReDoS](https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS)\n- Wikipedia: [ReDoS](https://en.wikipedia.org/wiki/ReDoS).\n- Wikipedia: [Time complexity](https://en.wikipedia.org/wiki/Time_complexity).\n- James Kirrage, Asiri Rathnayake, Hayo Thielecke: [Static Analysis for Regular Expression Denial-of-Service Attack](http://www.cs.bham.ac.uk/~hxt/research/reg-exp-sec.pdf).\n- Common Weakness Enumeration: [CWE-1333](https://cwe.mitre.org/data/definitions/1333.html).\n- Common Weakness Enumeration: [CWE-400](https://cwe.mitre.org/data/definitions/400.html).\n\n\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" : "nitrado.js"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.2.5"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/cainthebest/nitrado.js/security/advisories/GHSA-vqc4-v8hc-h2jg"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-36034"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/cainthebest/nitrado.js"
}, {
"type" : "WEB",
"url" : "https://github.com/cainthebest/nitrado.js/blob/v0.2.5/CHANGELOG.md"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1333" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-08-31T22:23:39Z",
"nvd_published_at" : "2022-08-29T17:15:00Z"
}
}