ShellJS is a popular Node.js library that brings the power of Unix shell commands to JavaScript. This particular version, 0.0.1, marks a very early stage in the library's development. As the initial release, it offers a foundational set of shell commands accessible within Node.js environments. Developers looking to automate tasks, manipulate files, or execute system commands from their JavaScript code might find this version intriguing.
However, given it's the first iteration, it's important to understand that significant differences likely exist between it and subsequent stable releases. Version 0.0.1 likely lacks many features, bug fixes, and performance enhancements found in later versions of ShellJS. If the previous stable version is available, it would definitely be a good comparison.
For developers considering adopting ShellJS, exploring the differences between version 0.0.1 and a more recent stable release is crucial. Newer versions would likely include a broader range of commands, improved error handling, a more mature API, and better cross-platform compatibility. Before using shelljs-0.0.1, checking a more recent version will ensure a more robust and feature-rich experience when integrating shell commands into Node.js projects. A more modern version likely eliminates potential compatibility issues by offering better support making shell scripting in Javascript easier.
All the vulnerabilities related to the version 0.0.1 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: