iamkishan98 / E-voting-using-blockchain

Decentralized online vorting application built with blockchain
2 stars 0 forks source link

CVE-2021-23362 (Medium) detected in hosted-git-info-2.7.1.tgz, hosted-git-info-2.4.2.tgz #291

Open mend-bolt-for-github[bot] opened 1 year ago

mend-bolt-for-github[bot] commented 1 year ago

CVE-2021-23362 - Medium Severity Vulnerability

Vulnerable Libraries - hosted-git-info-2.7.1.tgz, hosted-git-info-2.4.2.tgz

hosted-git-info-2.7.1.tgz

Provides metadata and conversions from repository urls for Github, Bitbucket and Gitlab

Library home page: https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.7.1.tgz

Path to dependency file: /E-voting-using-blockchain/evoting app/src/bower_components/chart.js/package.json

Path to vulnerable library: /evoting app/src/bower_components/bootstrap-daterangepicker/node_modules/hosted-git-info/package.json,/evoting app/src/bower_components/bootstrap-daterangepicker/node_modules/hosted-git-info/package.json,/evoting app/src/bower_components/bootstrap-daterangepicker/node_modules/hosted-git-info/package.json,/evoting app/src/bower_components/bootstrap-daterangepicker/node_modules/hosted-git-info/package.json,/evoting app/src/bower_components/bootstrap-daterangepicker/node_modules/hosted-git-info/package.json,/evoting app/src/bower_components/bootstrap-daterangepicker/node_modules/hosted-git-info/package.json,/evoting app/src/bower_components/bootstrap-daterangepicker/node_modules/hosted-git-info/package.json,/evoting app/src/bower_components/bootstrap-daterangepicker/node_modules/hosted-git-info/package.json

Dependency Hierarchy: - grunt-0.3.17.tgz (Root Library) - nodeunit-0.7.4.tgz - tap-14.2.2.tgz - nyc-14.1.1.tgz - test-exclude-5.2.3.tgz - read-pkg-up-4.0.0.tgz - read-pkg-3.0.0.tgz - normalize-package-data-2.5.0.tgz - :x: **hosted-git-info-2.7.1.tgz** (Vulnerable Library)

hosted-git-info-2.4.2.tgz

Provides metadata and conversions from repository urls for Github, Bitbucket and Gitlab

Library home page: https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.4.2.tgz

Path to dependency file: /E-voting-using-blockchain/evoting app/src/package.json

Path to vulnerable library: /evoting app/src/node_modules/hosted-git-info/package.json

Dependency Hierarchy: - grunt-contrib-cssmin-0.12.3.tgz (Root Library) - maxmin-1.1.0.tgz - pretty-bytes-1.0.4.tgz - meow-3.7.0.tgz - normalize-package-data-2.3.8.tgz - :x: **hosted-git-info-2.4.2.tgz** (Vulnerable Library)

Found in HEAD commit: 3c02898f89d78283ce791eb1b53b2b5a667681ad

Found in base branch: master

Vulnerability Details

The package hosted-git-info before 3.0.8 are vulnerable to Regular Expression Denial of Service (ReDoS) via regular expression shortcutMatch in the fromUrl function in index.js. The affected regular expression exhibits polynomial worst-case time complexity.

Publish Date: 2021-03-23

URL: CVE-2021-23362

CVSS 3 Score Details (5.3)

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.

Suggested Fix

Type: Upgrade version

Origin: https://github.com/advisories/GHSA-43f8-2h32-f4cj

Release Date: 2021-03-23

Fix Resolution (hosted-git-info): 2.8.9

Direct dependency fix Resolution (grunt): 0.4.0

Fix Resolution (hosted-git-info): 2.8.9

Direct dependency fix Resolution (grunt-contrib-cssmin): 0.13.0


Step up your Open Source Security Game with Mend here