Yargs, a modern, pirate-themed command-line argument parser, released version 6.3.0 shortly after 6.2.0, offering subtle but important upgrades for developers. Both versions share a core set of dependencies, including y18n, cliui, camelcase, os-locale, decamelize, read-pkg-up, window-size, set-blocking, string-width, which-module, yargs-parser, get-caller-file, require-directory, and require-main-filename, ensuring consistent argument parsing and localization.
The key difference lies in the development dependencies, reflecting improvements in the testing and development environment. Version 6.3.0 updates nyc from version 8.1.0 to 8.3.2. This upgrade signifies enhanced code coverage reporting and potentially improved debugging capabilities during development. While the user-facing API likely remains consistent, this suggests a focus on internal code quality and robustness between the revisions. Developers relying on nyc for code coverage in their projects will appreciate this subtle refinement making the upgrade an important step in development. For developers using Yargs, the consistent API ensures a seamless update, while the updated development dependencies signal a commitment to stability and maintainability. Both versions remain under the MIT license, fostering open-source collaboration. Consider upgrading to 6.3.0 for the best development experience.
All the vulnerabilities related to the version 6.3.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.