aariasucr / ci2400-1-2020-Ejemplos-Clase

Ejemplos en clase del curso CI2400, Primer Semestre 2020 - ECCI UCR
0 stars 0 forks source link

WS-2020-0068 (High) detected in yargs-parser-13.1.2.tgz, yargs-parser-11.1.1.tgz #4

Open mend-bolt-for-github[bot] opened 4 years ago

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

WS-2020-0068 - High Severity Vulnerability

Vulnerable Libraries - yargs-parser-13.1.2.tgz, yargs-parser-11.1.1.tgz

yargs-parser-13.1.2.tgz

the mighty option parser used by yargs

Library home page: https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz

Path to dependency file: /tmp/ws-scm/ci2400-1-2020-Ejemplos-Clase/ejemplo-clase/package.json

Path to vulnerable library: /tmp/ws-scm/ci2400-1-2020-Ejemplos-Clase/ejemplo-clase/node_modules/@angular/compiler-cli/node_modules/yargs-parser/package.json

Dependency Hierarchy: - compiler-cli-8.1.3.tgz (Root Library) - yargs-13.1.0.tgz - :x: **yargs-parser-13.1.2.tgz** (Vulnerable Library)

yargs-parser-11.1.1.tgz

the mighty option parser used by yargs

Library home page: https://registry.npmjs.org/yargs-parser/-/yargs-parser-11.1.1.tgz

Path to dependency file: /tmp/ws-scm/ci2400-1-2020-Ejemplos-Clase/ejemplo-clase/package.json

Path to vulnerable library: /tmp/ws-scm/ci2400-1-2020-Ejemplos-Clase/ejemplo-clase/node_modules/yargs-parser/package.json

Dependency Hierarchy: - build-angular-0.801.3.tgz (Root Library) - webpack-dev-server-3.7.2.tgz - yargs-12.0.5.tgz - :x: **yargs-parser-11.1.1.tgz** (Vulnerable Library)

Found in HEAD commit: 4523b6a137e1224e3b9d02f989700f5d79afed5a

Vulnerability Details

Affected versions of yargs-parser are vulnerable to prototype pollution. Arguments are not properly sanitized, allowing an attacker to modify the prototype of Object, causing the addition or modification of an existing property that will exist on all objects. Parsing the argument --foo.__proto__.bar baz' adds a bar property with value baz to all objects. This is only exploitable if attackers have control over the arguments being passed to yargs-parser.

Publish Date: 2020-05-01

URL: WS-2020-0068

CVSS 3 Score Details (7.5)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Adjacent - Attack Complexity: High - 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://www.npmjs.com/package/yargs-parser

Release Date: 2020-05-04

Fix Resolution: https://www.npmjs.com/package/yargs-parser/v/18.1.2,https://www.npmjs.com/package/yargs-parser/v/15.0.1


Step up your Open Source Security Game with WhiteSource here

aariasucr commented 4 years ago

Arreglado