# GHSA-64g7-mvw6-v9qj: Improper Privilege Management in shelljs

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2022-01-14T21:09:50.000Z
- Modified: 2022-01-14T20:50:57.000Z
- Weaknesses: 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

(As written by GitHub Advisory Database.)

## Affected

- shelljs (npm): before 0.8.5

## References

- <https://github.com/shelljs/shelljs/security/advisories/GHSA-64g7-mvw6-v9qj> (web)
- <https://github.com/shelljs/shelljs> (package)
- <https://huntr.dev/bounties/50996581-c08e-4eed-a90e-c0bac082679c> (web)

## Sources

- GitHub Advisory Database: [GHSA-64g7-mvw6-v9qj](https://github.com/advisories/GHSA-64g7-mvw6-v9qj), CC-BY-4.0, modified 2022-01-14

---

Page: https://cve.day/GHSA-64g7-mvw6-v9qj · Whole record: https://cve.day/GHSA-64g7-mvw6-v9qj.json · Rebuilt by cve.day 2026-11-25T22:56:44.288Z
