What’s Vulnerable › Vulnerabilities
GHSA-64g7-mvw6-v9qj: Improper Privilege Management in shelljs
- Severity: medium (CVSS 5.5)
- Exploited in the wild: not listed in CISA KEV
- Public exploit or detection template: none known
- Published: 2022-01-14 · updated 2022-01-14
- Weakness: CWE-269
Description
### Impact 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. ### Patches Patched in shelljs 0.8.5 ### Workarounds Recommended action is to upgrade to 0.8.5. ### References https://huntr.dev/bounties/50996581-c08e-4eed-a90e-c0bac082679c/ ### For more information If you have any questions or comments about this advisory: * Ask at https://github.com/shelljs/shelljs/issues/1058 * Open an issue at https://github.com/shelljs/shelljs/issues/new
Affected products
- Npm Shelljs: before 0.8.5 — fixed in 0.8.5
How to fix
Upgrade to a fixed version: Npm Shelljs 0.8.5. Check the vendor advisory for mitigations.
References
- https://github.com/shelljs/shelljs/security/advisories/GHSA-64g7-mvw6-v9qj
- https://github.com/shelljs/shelljs
- https://huntr.dev/bounties/50996581-c08e-4eed-a90e-c0bac082679c
Get alerted when GHSA-64g7-mvw6-v9qj or the next vulnerability affects your stack