Prettier version 0.18.0 represents a minor update to the widely used JavaScript code formatter, building upon the foundation laid by version 0.17.1. Both versions share the same core dependencies, including glob, chalk, babylon, esutils, minimist, ast-types, get-stdin, flow-parser, jest-validate, and babel-code-frame, ensuring consistent support for core JavaScript and Flow syntax. Similarly, the development dependencies used for testing and building the package, such as diff, jest, and various Rollup plugins, remain consistent between the two versions, suggesting a focus on stability and maintaining the existing development workflow.
The crucial difference lies in the release date. Version 0.18.0 was released on February 16, 2017, while version 0.17.1 was released two days earlier on February 14, 2017. This short interval suggests that version 0.18.0 might contain bug fixes, minor enhancements, or tweaks identified shortly after the release of 0.17.1. Developers considering upgrading should investigate the commit history between these two versions on the official GitHub repository to pinpoint the exact changes. While the core functionality likely remains the same,opting for 0.18.0 ensures a more up-to-date version with potentially improved stability and refined formatting behavior. Ultimately, both versions offer the reliable and opinionated JavaScript formatting that Prettier is known for, aimed at creating consistent codebases and saving developers time on manual formatting.
All the vulnerabilities related to the version 0.18.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).