Vulnerabilities/

yargs-parser Vulnerable to Prototype Pollution

Severity:
Medium

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.

Recommendation

Update the yargs-parser package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
yargs-parser
Anything's wrong? Let us know Last updated on January 27, 2023

This issue is available in SmartScanner Professional

See Pricing