問題タブ [yargs]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
0 に答える
292 参照

angular - How to resolve white-source security issue for npm libraries

White-source has reported high security issue with following libraries for yargs-parser for my repo:

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.

Whitesource has suggested this fix: yargs-parser/v/18.1.2 , yargs-parser/v/15.0.1

Need suggestion to resolve this issue. I mean which yargs-parser I should use and how?