Yargs-parser version 16.1.0 represents a subtle but important update to the popular option parsing library, building upon the foundation laid by version 16.0.0. Both versions share the same core dependencies, relying on "camelcase" and "decamelize" for string manipulation tasks commonly encountered when parsing command-line arguments. Similarly, the development dependencies including testing frameworks like "chai" and "mocha", code coverage tools like "c8" and "coveralls", code style enforcers like "standard", and version management tools like "standard-version" remain consistent to ensure code quality and consistent development workflows. The license, repository, and author information also remain identical, indicating continuity in the project's management and ownership.
The key difference lies in the "dist" section, where "unpackedSize" changes from 63013 bytes in version 16.0.0 to 63609 bytes in version 16.1.0. This implies underlying code modifications, potential bug fixes, or performance improvements between releases. While the fileCount remains at 6, suggesting no new files were introduced, the increased size suggests internal adjustments. Furthermore, the "releaseDate" indicates that version 16.1.0 was published on November 1, 2019, a few days after version 16.0.0 (October 27, 2019).
For developers using yargs-parser, upgrading from 16.0.0 to 16.1.0 is probably advisable, given the potential for bug fixes and enhanced performance, even though the changelog is not available in the provided information. This small version increment highlights the continuous improvements made to the library.
All the vulnerabilities related to the version 16.1.0 of the package
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
.
Upgrade to versions 13.1.2, 15.0.1, 18.1.1 or later.