ShellJS is a popular Node.js library offering portable Unix shell commands, simplifying cross-platform scripting. Comparing versions 0.7.1 and 0.7.2, the core functionality remains consistent, focusing on providing a familiar shell-like interface for Node.js developers. Both versions share identical dependencies, including "glob" for file pattern matching, "rechoir" for requiring files with different extensions, and "interpret" for handling shebang lines. Development dependencies also mirror each other, with tools like "jshint" for code quality, "coffee-script" for CoffeeScript support, and "shelljs-release," "shelljs-changelog," and "travis-check-changes" for release management and CI/CD integration.
The key difference lies primarily in the release date, with version 0.7.2 being published on July 25, 2016, subsequent to version 0.7.1, released on July 22, 2016. This suggests that version 0.7.2 addresses any bugs, patch or minor improvements identified shortly after the release of 0.7.1. For developers already using ShellJS, upgrading ensures they benefit from the latest bug fixes and potential performance enhancements. Those new to ShellJS will find a stable and well-maintained library for automating tasks and interacting with the file system in a cross-platform manner. Choose version 0.7.2 for the most up-to-date experience, incorporating refinements made after the previous stable release.
All the vulnerabilities related to the version 0.7.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: