Skip to content

Improper Privilege Management in shelljs

Moderate severity GitHub Reviewed Published Jan 14, 2022 in shelljs/shelljs • Updated Jan 11, 2023

Package

npm shelljs (npm)

Affected versions

< 0.8.5

Patched versions

0.8.5

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:

References

@nfischer nfischer published to shelljs/shelljs Jan 14, 2022
Reviewed Jan 14, 2022
Published to the GitHub Advisory Database Jan 14, 2022
Last updated Jan 11, 2023

Severity

Moderate

Weaknesses

CVE ID

No known CVE

GHSA ID

GHSA-64g7-mvw6-v9qj

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.