Prettier 1.2.0 represents a minor version update over the previous stable release, 1.1.0, focusing on refinements and internal improvements for JavaScript code formatting. Both versions share the same core set of dependencies, including widely used packages like glob, chalk, babylon, esutils, minimist, ast-types, get-stdin, flow-parser, jest-validate, and babel-code-frame, ensuring consistent handling of core JavaScript features and related functionalities. This indicates a commitment to maintaining stability and compatibility across these minor version increments.
The devDependencies also remain identical, encompassing tools for development workflows such as testing (jest, diff), build processes (rollup), and TypeScript support (typescript, typescript-eslint-parser, and relevant rollup plugins). This consistency ensures that contributors and maintainers can continue to leverage the same familiar toolset for development and testing.
While the core dependencies and development tools appear unchanged, indicating a focus on internal improvements rather than major feature additions, developers upgrading from 1.1.0 to 1.2.0 can expect a smoother and more refined formatting experience. The upgrade likely incorporates bug fixes, performance enhancements, and subtle stylistic adjustments that improve the overall quality of the formatted output. The releaseDate difference of approximately five days suggests a quick iteration addressing issues discovered in 1.1.0 or implementing small, impactful improvements. For developers, this indicates a rapid development cycle and attention to detail from the Prettier team. This minor upgrade provides a more reliable and refined code formatting, while maintaining a stable API.
All the vulnerabilities related to the version 1.2.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).