ShellJS version 0.6.0 marks a notable evolution from its predecessor, version 0.5.3, offering developers enhanced tools for cross-platform scripting in Node.js. While both versions provide a suite of portable Unix shell commands, 0.6.0 introduces key upgrades and changes. One significant difference is the addition of coffee-script as a dev dependency, indicating potential enhancements or refactoring using CoffeeScript, a language that compiles to JavaScript. This could mean improved code readability or more concise syntax for contributors. The repository URL also sees a shift, moving from arturadib/shelljs to shelljs/shelljs, suggesting a possible organizational change or transfer of ownership within the project. Crucially, the license updates from "BSD*" to "BSD-3-Clause," which clarifies the licensing terms and offers more explicit legal permissions for users. Finally, 0.6.0 has a newer release date, implying bug fixes, performance improvements, and new features implemented since version 0.5.3. Developers considering an upgrade will benefit from a more actively maintained library, potentially leveraging CoffeeScript's advantages, and operating under a clearer BSD license.
All the vulnerabilities related to the version 0.6.0 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: