ShellJS version 0.5.3 represents a minor update over the preceding stable release, version 0.5.2, of this popular Node.js library that provides a portable way to execute Unix shell commands in JavaScript. Both versions share the same core functionality, offering developers a convenient and cross-platform method to incorporate shell scripting capabilities directly into their Node.js applications. They both have no dependencies and they share the same dev dependencies, jshint version.
The primary distinction between the two versions lies in timing: version 0.5.3 was released on August 11, 2015, a single day after version 0.5.2 which was released August 10, 2015. Given the swift succession of these releases it is likely there were very small bug fixes or minor improvements between versions.
For developers considering using ShellJS, it's pertinent to note that both versions offer a consistent API for executing commands. Developers should evaluate whether any fixes between the versions address specific issues encountered or if the updated release enhances compatibility. ShellJS simplifies tasks like file manipulation, path resolution, and executing external programs, streamlining development workflows that would otherwise necessitate platform-specific code. The library maintains a permissive BSD license and is available via npm, making integration straightforward. When choosing between older versions, checking any release notes or issue trackers can illuminate the specific changes incorporated.
All the vulnerabilities related to the version 0.5.3 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: