ShellJS is a popular Node.js library providing a portable way to execute Unix shell commands within JavaScript environments. Version 0.2.2 builds upon the foundation laid by version 0.2.1, offering subtle improvements and refinements for developers seeking streamlined scripting capabilities. Both versions share the core functionality of enabling developers to leverage familiar shell commands like ls, cp, rm, and grep directly within their Node.js applications, eliminating the need for complex system calls or external dependencies. They are simple to install and offer a very simple API
A key aspect both versions share is their dependency structure: neither lists any direct dependencies but both utilize jshint as a devDependency for code quality assurance.
The upgrade from 0.2.1 to 0.2.2 primarily represents a refinement, indicated by the version number increment. While specific feature additions or bug fixes aren't explicitly detailed, the release date difference suggests a period of development and stabilization between the versions. Version 0.2.2 was released on September 2, 2013, a week after version 0.2.1 released on August 26, 2013, suggesting that the changes were critical and fast. Developers already using ShellJS should consider upgrading to 0.2.2 to benefit from those potential improvements and ensure they are working with the most up-to-date and reliable version.
All the vulnerabilities related to the version 0.2.2 of the package
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: