Prettier version 0.19.0 represents a minor update over version 0.18.0, primarily focusing on dependency upgrades and internal improvements. For developers, the core formatting functionality remains consistent between the two versions, meaning existing configurations and workflows should continue to function as expected. A notable change lies in the updated dependencies.
Specifically, jest-validate moves from version 18.2.0 to 19.0.0, and the jest devDependency is updated from v18.0.0 to v19.0.1. These upgrades likely bring improved validation and testing capabilities, relevant more for contributors developing Prettier itself, but potentially impacting the stability and reliability of the formatter indirectly for end-users. There are no apparent changes to the core parsing or formatting logic, so the upgrade is unlikely to introduce new formatting rules or break existing code styles. Therefore, upgrading from 0.18.0 to 0.19.0 seems a worthwhile step for ongoing bug fixes and internal improvements, and also for compatibility in the long term.
All the vulnerabilities related to the version 0.19.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).