Shelljs is a popular Node.js library that lets you execute Unix shell commands in a cross-platform manner. Comparing versions 0.8.0 and 0.7.8 reveals some key updates for developers. Both versions share the same core dependencies: glob, rechoir, and interpret, indicating consistent functionality related to file system operations, configuration loading, and script execution. The primary differences lie in the development dependencies, reflecting improvements in the testing and development workflow.
Version 0.8.0 upgrades the ava testing framework from version 0.16.0 to 0.21.0 and nyc code coverage tool from version 10.0.0 to 11.3.0. This suggests a move towards more modern testing practices and enhanced code coverage reporting. A notable addition in 0.8.0 is the chalk package, likely used for adding color and styling to the command-line output during development. While this doesn't directly impact the library's functionality, it can significantly improve the developer experience by making debugging and script execution more visually informative. Although both versions aim to provide a consistent API for executing shell commands regardless of the operating system, the newer version benefits from updated testing methodologies and tools, potentially leading to more robust and reliable code. The release date difference indicates that version 0.8.0 incorporates several months of improvements and refinements over its predecessor which solidify its purpose.
All the vulnerabilities related to the version 0.8.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: