Prettier version 0.0.10 introduces a minor update to the popular opinionated JavaScript formatter. While the core functionalities remain consistent with version 0.0.9, developers will appreciate the subtle improvements and bug fixes that enhance the overall formatting experience. Both releases depend on the same core libraries, including jsesc, babylon, esutils, private, minimist, ast-types, get-stdin, and flow-parser, ensuring a stable foundation for code parsing and manipulation. The developer tooling also mirrors the previous version, leveraging jest for testing and a suite of rollup plugins for bundling, including plugins for JSON processing, CommonJS modules, Babel minification, and Node.js module resolution and built-in modules.
The primary difference lies in the release date, with version 0.0.10 published on January 20, 2017, subsequent to version 0.0.9's release on January 18, 2017. This suggests that the newer version likely included minor bug fixes, performance tweaks, or refinements to formatting rules discovered after the initial release. While specific changes aren't detailed, developers upgrading from 0.0.9 can anticipate a more refined and potentially more reliable formatting experience. Remember to consult the project's git repository for comprehensive release notes that will give you all the information. Both versions are licensed under the MIT license, granting developers broad freedom in using and distributing the software.
All the vulnerabilities related to the version 0.0.10 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).