code4romania/covid-19-jurnal-medical

Update yargs-parser version

Open

#429 opened on May 22, 2020

 (1 comment) (0 reactions) (1 assignee)C# (50 forks)auto 404
apibughelp wanted

Repository metrics

Stars
 (14 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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.

A. frontend node-sass > sass-graph > yargs > yargs-parser B. frontend react-scripts > webpack-dev-server > yargs > yargs-parser

Contributor guide