Prettier 1.0.2 is a minor patch release following closely after version 1.0.1 of the popular opinionated JavaScript formatter. Both versions share the same core functionality, providing consistent code style across JavaScript projects. Developers relying on Prettier for automated code formatting will find the core experience identical between the two versions. The listed dependencies for core functionality, including glob, chalk, babylon, and flow-parser, remain unchanged, ensuring consistent parsing and formatting behavior. Similarly, development dependencies used for testing and building, such as jest, rollup, and the typescript-eslint-parser, are the same.
The key difference lies in the release date, with version 1.0.2 published shortly after 1.0.1. This suggests that version 1.0.2 likely addresses minor bugs or issues discovered immediately after the initial 1.0.1 release. While a detailed changelog would provide more specifics, such quick turnaround usually indicates a fix for a regression or a critical edge case. For developers, upgrading to 1.0.2 is recommended to benefit from any immediate fixes and ensure the most stable experience. Given the minimal time difference between releases, the impact is likely minimal for most users, but updating avoids potentially encountering any swiftly resolved issues.
All the vulnerabilities related to the version 1.0.2 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).