ESLint 2.5.0 represents an incremental update over version 2.4.0 of this popular JavaScript linting tool, offering refinements and dependency adjustments for enhanced code analysis. Developers upgrading from 2.4.0 will primarily notice modifications in the underlying dependency versions. Specifically, the glob dependency advances from version "^6.0.4" to "^7.0.3", potentially impacting file matching behavior during linting processes. The ignore package also sees an update, moving from version "^2.2.19" to "^3.0.10", this might modify how files are excluded from the linting process, so developers utilising .eslintignore files should pay attention.
globals jumps from "^8.18.0" to "^9.2.0" and espree moves from "^3.1.1" to "3.1.3", which might expose developers to updated ECMAScript features and syntax parsing capabilities which might be important when working with a more modern Javascript code. Furthermore, the shelljs dependency experienced an upgrade from "^0.5.3" to "^0.6.0". A key difference in the devDependencies is the removal of the explicit phantomjs dependency in 2.5.0, which was previously at version 1.9.18 in 2.4.0. The eslint-release package bumps from ^0.3.0 to ^0.4.0 potentially impacting the release process if you're contributing to eslint itself.
These changes collectively contribute to a more robust and up-to-date linting experience, ensuring compatibility with evolving JavaScript standards and development practices. Developers are encouraged to review the changelogs for both glob and ignore to identify any potential impact on their specific ESLint configurations and workflows.
All the vulnerabilities related to the version 2.5.0 of the package
Prototype Pollution in Ajv
An issue was discovered in ajv.validate() in Ajv (aka Another JSON Schema Validator) 6.12.2. A carefully crafted JSON schema could be provided that allows execution of other code by prototype pollution. (While untrusted schemas are recommended against, the worst case of an untrusted schema should be a denial of service, not execution of code.)
Improper Privilege Management in shelljs
shelljs is vulnerable to Improper Privilege Management
Improper Privilege Management in shelljs
Output from the synchronous version of shell.exec()
may be visible to other users on the same system. You may be affected if you execute shell.exec()
in multi-user Mac, Linux, or WSL environments, or if you execute shell.exec()
as the root user.
Other shelljs functions (including the asynchronous version of shell.exec()
) are not impacted.
Patched in shelljs 0.8.5
Recommended action is to upgrade to 0.8.5.
https://huntr.dev/bounties/50996581-c08e-4eed-a90e-c0bac082679c/
If you have any questions or comments about this advisory: