Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

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

Closed
mend-bolt-for-github bot opened this issue May 5, 2020 · 0 comments
Labels
security vulnerability Security vulnerability detected by WhiteSource

Comments

@mend-bolt-for-github
Copy link
Contributor

WS-2020-0068 - Medium 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/WFH_Resources/WFHResourcesApp/package.json

Path to vulnerable library: /tmp/ws-scm/WFH_Resources/WFHResourcesApp/node_modules/@angular/localize/node_modules/yargs-parser/package.json

Dependency Hierarchy:

  • compiler-cli-9.0.6.tgz (Root Library)
    • yargs-13.1.0.tgz
      • 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/WFH_Resources/WFHResourcesApp/package.json

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

Dependency Hierarchy:

  • build-angular-0.900.6.tgz (Root Library)
    • webpack-dev-server-3.9.0.tgz
      • yargs-12.0.5.tgz
        • yargs-parser-11.1.1.tgz (Vulnerable Library)

Found in HEAD commit: 0a66f78cf713627846c348736ef811fd18a643fd

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

@mend-bolt-for-github mend-bolt-for-github bot added the security vulnerability Security vulnerability detected by WhiteSource label May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
security vulnerability Security vulnerability detected by WhiteSource
Projects
None yet
Development

No branches or pull requests

1 participant