finos / cla-bot

cla-bot is a GitHub bot for automation of Contributor Licence Agreements (CLAs).
https://finos.github.io/cla-bot/
Apache License 2.0
45 stars 27 forks source link

CVE-2020-7598 (High) detected in minimist-0.0.10.tgz #184

Closed mend-for-github-com[bot] closed 3 years ago

mend-for-github-com[bot] commented 4 years ago

CVE-2020-7598 - High Severity Vulnerability

Vulnerable Library - minimist-0.0.10.tgz

parse argument options

Library home page: https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz

Path to dependency file: /tmp/ws-scm/cla-bot/package.json

Path to vulnerable library: /tmp/ws-scm/cla-bot/node_modules/minimist/package.json

Dependency Hierarchy: - handlebars-4.5.3.tgz (Root Library) - optimist-0.6.1.tgz - :x: **minimist-0.0.10.tgz** (Vulnerable Library)

Vulnerability Details

minimist before 1.2.2 could be tricked into adding or modifying properties of Object.prototype using a "constructor" or "__proto__" payload.

Publish Date: 2020-03-11

URL: CVE-2020-7598

CVSS 3 Score Details (9.8)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: High - Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://github.com/substack/minimist/commit/63e7ed05aa4b1889ec2f3b196426db4500cbda94

Release Date: 2020-03-11

Fix Resolution: minimist - 0.2.1,1.2.2

maoo commented 4 years ago

Apparently the latest released version of handlebars (4.7.3) still uses optimist-0.6.1, so it wouldn't solve the issue, see https://github.com/wycats/handlebars.js/blob/v4.7.3/package.json#L25

@ColinEberhardt - any way we could force the version of minimist dependency differently?