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.
CVE-2022-21222 - Medium Severity Vulnerability
a CSS selector parser
Library home page: https://registry.npmjs.org/css-what/-/css-what-1.0.0.tgz
Path to dependency file: /vendor/github.com/hashicorp/vault/ui/package.json
Path to vulnerable library: /vendor/github.com/hashicorp/vault/ui/node_modules/css-what/package.json
Dependency Hierarchy: - ember-cli-favicon-1.0.0-beta.4.tgz (Root Library) - broccoli-favicon-1.0.0.tgz - favicons-4.8.6.tgz - cheerio-0.19.0.tgz - css-select-1.0.0.tgz - :x: **css-what-1.0.0.tgz** (Vulnerable Library)
Found in base branch: master
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.
Publish Date: 2022-09-30
URL: CVE-2022-21222
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: Low
For more information on CVSS3 Scores, click here.Type: 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 (ember-cli-favicon): 2.0.0
Step up your Open Source Security Game with Mend here