Shelljs offers a convenient way to execute common UNIX shell commands within Node.js environments, streamlining cross-platform scripting and automation tasks. Examining versions 0.7.7 and 0.7.8, we see a focused update within a span of roughly three months. The core functionality, evident in the shared dependencies like glob for file pattern matching, rechoir for configuration file loading, and interpret for handling different scripting languages, remains consistent. Similarly, the developer dependencies, encompassing testing frameworks (ava, nyc), linting tools (eslint, eslint-plugin-import, eslint-config-airbnb-base), and release management utilities (shelljs-release, shelljs-changelog, travis-check-changes), are identical across both versions, suggesting a continued commitment to code quality and automated workflows.
The primary distinction lies in the release date, indicating that version 0.7.8 likely incorporates bug fixes, minor enhancements, or security patches developed and integrated since version 0.7.7. While the specific nature of these updates isn't detailed in the provided metadata, the jump from March to June 2017 implies a period of refinement. Developers using Shelljs should therefore opt for the latest version (0.7.8) to benefit from these potential improvements and ensure compatibility with the most current environments. The library, licensed under BSD-3-Clause, remains a robust choice for simplifying shell scripting within Node.js projects, offering a portable and familiar command-line interface for file manipulation, process control, and more.
All the vulnerabilities related to the version 0.7.8 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: