Prettier version 0.16.0 introduces no discernible changes in its core dependencies or development dependencies compared to version 0.15.0. Both iterations depend on the same versions of essential packages like glob, babylon, esutils, minimist, ast-types, get-stdin, flow-parser, jest-validate, and babel-code-frame for its formatting capabilities. Similarly, the development environment, vital for building and testing Prettier, remains consistent, utilizing jest, rollup and various Rollup plugins.
The key differentiator lies in the release date. Version 0.16.0 was published on February 6, 2017, succeeding version 0.15.0, which was released on February 2, 2017. This suggests that version 0.16.0 likely includes bug fixes, performance enhancements, or minor updates that didn't necessitate changes to the declared dependencies. Given the short timeframe between releases, it is probable that the changes were focused on refining existing functionalities rather than introducing new features.
For developers using Prettier, this means that upgrading from 0.15.0 to 0.16.0 should be a straightforward and low-risk process. While the lack of dependency updates might seem insignificant, these incremental releases are crucial for stability and reliability. It's advisable to upgrade to the latest version to benefit from any potential improvements.
All the vulnerabilities related to the version 0.16.0 of the package
Prototype Pollution in minimist
Affected versions of minimist
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 --__proto__.y=Polluted
adds a y
property with value Polluted
to all objects. The argument --__proto__=Polluted
raises and uncaught error and crashes the application.
This is exploitable if attackers have control over the arguments being passed to minimist
.
Upgrade to versions 0.2.1, 1.2.3 or later.
Prototype Pollution in minimist
Minimist prior to 1.2.6 and 0.2.4 is vulnerable to Prototype Pollution via file index.js
, function setKey()
(lines 69-95).