ESLint version 0.1.0 represents an evolution of the popular JavaScript linting tool, building upon the foundation laid by version 0.0.7. Developers will notice several key improvements. The core functionality remains the same: leveraging Esprima for JavaScript parsing to enforce code style and identify potential errors. However, 0.1.0 introduces escope as a new dependency, specifically version 1.0.0. This addition likely enhances ESLint's ability to understand variable scope, leading to more accurate and reliable linting results, particularly beneficial in complex JavaScript projects.
While both versions share common dependencies like jshint, esprima, and optimist, the estraverse dependency is updated from ~1.2.0 in 0.0.7 to ~1.3.0 in 0.1.0, suggesting improvements in abstract syntax tree traversal, potentially impacting performance and the accuracy of rule application. The development dependencies remain largely consistent, ensuring a stable testing and development environment.
Crucially, this update signifies more than just a minor version bump. The addition of escope suggests a move towards more sophisticated static analysis, allowing ESLint to catch subtle bugs related to variable usage that older versions might miss. For developers, upgrading to 0.1.0 offers a more powerful and reliable linting experience, promoting cleaner, more maintainable code and potentially reducing runtime errors in JavaScript applications. ESLint remains licensed under the MIT license, ensuring flexibility for diverse project needs and the source code continues to be hosted on Github.
All the vulnerabilities related to the version 0.1.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).