Prettier version 0.15.0 is a minor release following 0.14.1 of this popular opinionated JavaScript formatter, both created by James Long. The core functionality, described as an opinionated JavaScript formatter, remains consistent between the two. Examining the provided data, the core dependencies listed are identical including versions of packages like glob, babylon, esutils, and get-stdin, meaning no significant changes to the underlying parsing or file system interactions are immediately apparent. The development dependencies also remain the same between versions 0.14.1 and 0.15.0, showcasing that the tooling and testing infrastructure (like Jest, Rollup, and related plugins) used by the Prettier team saw no updates during that increment.
The key difference between the two versions lies in the release date; version 0.15.0 was released on February 2, 2017, indicating a small time gap of a few days from version 0.14.1 released January 30, 2017. Developers considering upgrading might not find new features, API changes, or noticeable performance improvements. The updated version may include crucial bug fixes, minor performance enhancements, or dependency updates not explicitly reflected in the dependency lists, providing a slightly more polished experience. Thus, while the fundamental functionality remains the same, the newer version potentially offers a slightly more stable and refined experience, encouraging users to upgrade for potential bug fixes though without disruptive changes.
All the vulnerabilities related to the version 0.15.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).