Shelljs is a popular Node.js library enabling developers to execute Unix shell commands within their JavaScript code, offering a cross-platform solution for automating tasks and interacting with the operating system. Comparing versions 0.1.4 and 0.2.0 reveals subtle but significant updates. Both versions share the same fundamental description and core functionality. They also share the same developer dependencies, using JSHint version '1.1.0' for code quality checks, indicating a consistent development approach across both releases. Authorship remains constant with Artur Adib credited for both versions.
The primary difference lies in the version number and release date. Version 0.2.0, released on August 25, 2013, succeeds version 0.1.4, which was released on May 10, 2013, indicating a period of refinement. For developers, this means 0.2.0 likely contains bug fixes, performance improvements, or potentially minor feature enhancements over 0.1.4. While the specifics aren't detailed in the provided data, upgrading to 0.2.0 generally offers a more stable and potentially optimized experience. Developers should consult the changelogs or release notes (usually available on the shelljs GitHub repository linked in the data) to get a detailed list of changes when migrating, and ideally run tests to confirm compatibility with existing code that use shelljs. Being an early version, it's recommended to consider more recent major versions, as the library is actively maintained and has matured a lot to be safe.
All the vulnerabilities related to the version 0.2.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: