The package css-what before 2.1.3 are vulnerable to Regular Expression Denial of Service (ReDoS) due to the usage of insecure regular expression in the re_attr variable of index.js. The exploitation of this vulnerability could be triggered via the parse function.
Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
CVE-2021-3803
### Vulnerable Library - nth-check-1.0.2.tgz
Vulnerable Library - enzyme-3.10.0.tgz
Path to dependency file: /frontend/package.json
Path to vulnerable library: /frontend/node_modules/css-what/package.json
Vulnerabilities
**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation
Details
CVE-2022-21222
### Vulnerable Library - css-what-2.1.2.tgza CSS selector parser
Library home page: https://registry.npmjs.org/css-what/-/css-what-2.1.2.tgz
Path to dependency file: /frontend/package.json
Path to vulnerable library: /frontend/node_modules/css-what/package.json
Dependency Hierarchy: - enzyme-3.10.0.tgz (Root Library) - cheerio-1.0.0-rc.3.tgz - css-select-1.2.0.tgz - :x: **css-what-2.1.2.tgz** (Vulnerable Library)
Found in base branch: master
### Vulnerability DetailsThe package css-what before 2.1.3 are vulnerable to Regular Expression Denial of Service (ReDoS) due to the usage of insecure regular expression in the re_attr variable of index.js. The exploitation of this vulnerability could be triggered via the parse function.
Publish Date: 2022-09-30
URL: CVE-2022-21222
### CVSS 3 Score Details (7.5)Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High
For more information on CVSS3 Scores, click here. ### Suggested FixType: Upgrade version
Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-21222
Release Date: 2022-09-30
Fix Resolution (css-what): 2.1.3
Direct dependency fix Resolution (enzyme): 3.11.0
Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)CVE-2021-3803
### Vulnerable Library - nth-check-1.0.2.tgzperformant nth-check parser & compiler
Library home page: https://registry.npmjs.org/nth-check/-/nth-check-1.0.2.tgz
Path to dependency file: /frontend/package.json
Path to vulnerable library: /frontend/node_modules/nth-check/package.json
Dependency Hierarchy: - enzyme-3.10.0.tgz (Root Library) - cheerio-1.0.0-rc.3.tgz - css-select-1.2.0.tgz - :x: **nth-check-1.0.2.tgz** (Vulnerable Library)
Found in base branch: master
### Vulnerability Detailsnth-check is vulnerable to Inefficient Regular Expression Complexity
Publish Date: 2021-09-17
URL: CVE-2021-3803
### CVSS 3 Score Details (7.5)Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High
For more information on CVSS3 Scores, click here. ### Suggested FixType: Upgrade version
Release Date: 2021-09-17
Fix Resolution (nth-check): 2.0.1
Direct dependency fix Resolution (enzyme): 3.11.0
Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)