Prettier version 0.11.0 represents an evolution from its predecessor, version 0.0.10, offering developers enhancements and dependency adjustments for their JavaScript formatting needs. Both versions, described as "opinionated JavaScript formatters," share a common goal of automatically enforcing a consistent code style. Examining the dependencies, we observe that version 0.11.0 introduces a new dependency, "glob":"7.1.1", and "babel-code-frame":"6.22.0", potentially adding file system path matching and debug information capabilities, while "jsesc":"2.4.0" and "private":"0.1.6" were removed which hints to some type of refactoring or implementation improvements. Core dependencies such as "babylon," "esutils," "minimist," "ast-types," "get-stdin," and "flow-parser" remain, indicating a stable core architecture for parsing and processing JavaScript code. The developer environment continues to utilize "jest," "rollup," and various Rollup plugins for testing, bundling, and optimization. Notably, the git repository URL remains consistent, suggesting ongoing maintenance within the same project structure . From a developer's perspective, the update signifies a move towards potentially better file handling and debugging, while developers should be aware of the dependency changes and test compatibility with existing workflows. The update was released around 3 days after the previous version, 2017-01-23 compared to 2017-01-20.
All the vulnerabilities related to the version 0.11.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).