ShellJS is a popular Node.js library providing a portable way to use Unix shell commands within JavaScript. Comparing versions 0.8.0 and 0.8.1 reveals a minor iteration with a focus on stability and recent updates. Both share identical core dependencies, including glob for file pattern matching, rechoir for loading configuration files, and interpret for handling different file extensions. The development dependencies, essential for testing and building the library, also remain consistent, featuring tools like ava for testing, nyc for coverage, eslint for code linting, and various utilities for release management and changelog generation.
The key difference lies in the release date. Version 0.8.1 was released on January 20, 2018, while version 0.8.0 came out on January 12, 2018. This suggests that version 0.8.1 likely incorporates bug fixes, performance improvements, or addressing minor issues discovered in the initial 0.8.0 release. For developers employing ShellJS, upgrading to version 0.8.1 is recommended to benefit from these potential enhancements. The library itself allows developers to execute common shell commands like ls, cp, rm, mkdir, and grep directly from their Node.js applications, simplifying tasks such as file system manipulation, process automation, and build scripting. This eliminates the need for platform-specific code and enhances the portability of Node.js projects across different operating systems. The BSD-3-Clause license offers flexibility for integration into various projects.
All the vulnerabilities related to the version 0.8.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: