rvvergara / advanced-web-developer-bootcamp-notes-examples-and-exercises

Examples and Exercises compiled. From the awesome Advanced Web Developer Bootcamp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CVE-2022-21222 (High) detected in css-what-2.1.0.tgz

mend-bolt-for-github opened this issue · comments

CVE-2022-21222 - High Severity Vulnerability

Vulnerable Library - css-what-2.1.0.tgz

a CSS selector parser

Library home page: https://registry.npmjs.org/css-what/-/css-what-2.1.0.tgz

Path to dependency file: /Section34-37-Warbler-Final-Project/warbler/warbler-client/package.json

Path to vulnerable library: /Section28-The-Virtual-DOM-Events-and-Forms/memory-game-exercise/node_modules/css-what/package.json,/Section28-The-Virtual-DOM-Events-and-Forms/memory-game-exercise/node_modules/css-what/package.json,/Section28-The-Virtual-DOM-Events-and-Forms/memory-game-exercise/node_modules/css-what/package.json,/Section28-The-Virtual-DOM-Events-and-Forms/memory-game-exercise/node_modules/css-what/package.json,/Section28-The-Virtual-DOM-Events-and-Forms/memory-game-exercise/node_modules/css-what/package.json,/Section28-The-Virtual-DOM-Events-and-Forms/memory-game-exercise/node_modules/css-what/package.json,/Section28-The-Virtual-DOM-Events-and-Forms/memory-game-exercise/node_modules/css-what/package.json,/Section28-The-Virtual-DOM-Events-and-Forms/memory-game-exercise/node_modules/css-what/package.json,/Section28-The-Virtual-DOM-Events-and-Forms/memory-game-exercise/node_modules/css-what/package.json,/Section28-The-Virtual-DOM-Events-and-Forms/memory-game-exercise/node_modules/css-what/package.json,/Section28-The-Virtual-DOM-Events-and-Forms/memory-game-exercise/node_modules/css-what/package.json,/Section28-The-Virtual-DOM-Events-and-Forms/memory-game-exercise/node_modules/css-what/package.json

Dependency Hierarchy:

  • react-scripts-1.1.4.tgz (Root Library)
    • html-webpack-plugin-2.29.0.tgz
      • pretty-error-2.1.1.tgz
        • renderkid-2.0.1.tgz
          • css-select-1.2.0.tgz
            • css-what-2.1.0.tgz (Vulnerable Library)

Found in HEAD commit: d80f181a2f4dd1169fbef38813309ffdd4ad82d4

Found in base branch: master

Vulnerability Details

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

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 Fix

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 (react-scripts): 1.1.5


Step up your Open Source Security Game with Mend here