Path to dependency file: /tmp/ws-scm/integration-app/backend/package.json
Path to vulnerable library: /tmp/ws-scm/integration-app/node_modules/@angular/compiler-cli/node_modules/yargs-parser/package.json,/tmp/ws-scm/integration-app/node_modules/@angular/compiler-cli/node_modules/yargs-parser/package.json
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.
WS-2020-0068 - Medium Severity Vulnerability
Vulnerable Libraries - yargs-parser-10.1.0.tgz, yargs-parser-13.1.1.tgz, yargs-parser-11.1.1.tgz
yargs-parser-10.1.0.tgz
the mighty option parser used by yargs
Library home page: https://registry.npmjs.org/yargs-parser/-/yargs-parser-10.1.0.tgz
Path to dependency file: /tmp/ws-scm/integration-app/backend/package.json
Path to vulnerable library: /tmp/ws-scm/integration-app/backend/node_modules/ts-jest/node_modules/yargs-parser/package.json
Dependency Hierarchy: - ts-jest-24.3.0.tgz (Root Library) - :x: **yargs-parser-10.1.0.tgz** (Vulnerable Library)
yargs-parser-13.1.1.tgz
the mighty option parser used by yargs
Library home page: https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.1.tgz
Path to dependency file: /tmp/ws-scm/integration-app/backend/package.json
Path to vulnerable library: /tmp/ws-scm/integration-app/node_modules/@angular/compiler-cli/node_modules/yargs-parser/package.json,/tmp/ws-scm/integration-app/node_modules/@angular/compiler-cli/node_modules/yargs-parser/package.json
Dependency Hierarchy: - compiler-cli-8.0.1.tgz (Root Library) - yargs-13.1.0.tgz - :x: **yargs-parser-13.1.1.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/integration-app/package.json
Path to vulnerable library: /tmp/ws-scm/integration-app/node_modules/yargs-parser/package.json
Dependency Hierarchy: - build-angular-0.803.5.tgz (Root Library) - webpack-dev-server-3.8.0.tgz - yargs-12.0.5.tgz - :x: **yargs-parser-11.1.1.tgz** (Vulnerable Library)
Found in HEAD commit: 4bb9fbe894d764a7deab50a186588d3850d413f2
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