nekofar/gulp-fontiran

WS-2020-0068 (Medium) detected in yargs-parser-13.1.2.tgz, yargs-parser-5.0.0.tgz

Closed this issue · 0 comments

WS-2020-0068 - Medium Severity Vulnerability

Vulnerable Libraries - yargs-parser-13.1.2.tgz, yargs-parser-5.0.0.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/gulp-fontiran/package.json

Path to vulnerable library: /tmp/ws-scm/gulp-fontiran/node_modules/mocha/node_modules/yargs-parser/package.json

Dependency Hierarchy:

  • mocha-7.1.2.tgz (Root Library)
    • yargs-unparser-1.6.0.tgz
      • yargs-13.3.2.tgz
        • yargs-parser-13.1.2.tgz (Vulnerable Library)
yargs-parser-5.0.0.tgz

the mighty option parser used by yargs

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

Path to dependency file: /tmp/ws-scm/gulp-fontiran/package.json

Path to vulnerable library: /tmp/ws-scm/gulp-fontiran/node_modules/yargs-parser/package.json

Dependency Hierarchy:

  • gulp-4.0.2.tgz (Root Library)
    • gulp-cli-2.2.0.tgz
      • yargs-7.1.0.tgz
        • yargs-parser-5.0.0.tgz (Vulnerable Library)

Found in HEAD commit: 1104c50efbcc91ba486b4738a5e3914c57000199

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 (5.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: N/A
    • Attack Complexity: N/A
    • Privileges Required: N/A
    • User Interaction: N/A
    • Scope: N/A
  • Impact Metrics:
    • Confidentiality Impact: N/A
    • Integrity Impact: N/A
    • Availability Impact: N/A

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