yargs-parser
Affected
- introduced
6.0.0, fixed13.1.2(semver)
Fixed versions
13.1.2
Fix
- Fixed version
13.1.2npm install [email protected]
Advisory
Also known as: CVE-2020-7608, SNYK-JS-YARGSPARSER-560381
yargs-parser Vulnerable to Prototype Pollution
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.
Recommendation
Upgrade to versions 13.1.2, 15.0.1, 18.1.1 or later.
Medium Basis: The source's own band: MODERATE
6.0.0, fixed 13.1.2 (semver)13.1.2
13.1.2npm install [email protected]14.0.0, fixed 15.0.1 (semver)15.0.1
15.0.1npm install [email protected]16.0.0, fixed 18.1.1 (semver)18.1.1
18.1.1npm install [email protected]0, fixed 5.0.1 (semver)5.0.1
5.0.1npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0