{"id":"GHSA-64g7-mvw6-v9qj","aliases":["GHSA-64g7-mvw6-v9qj"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Privilege Management in shelljs","summary":"### Impact\nOutput 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.\n\nOther shelljs functions (including the asynchronous version of `shell.exec()`) are not impacted.\n\n### Patches\nPatched in shelljs 0.8.5\n\n### Workarounds\nRecommended action is to upgrade to 0.8.5.\n\n### References\nhttps://huntr.dev/bounties/50996581-c08e-4eed-a90e-c0bac082679c/\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Ask at https://github.com/shelljs/shelljs/issues/1058\n* Open an issue at https://github.com/shelljs/shelljs/issues/new","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Impact\nOutput 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.\n\nOther shelljs functions (including the asynchronous version of `shell.exec()`) are not impacted.\n\n### Patches\nPatched in shelljs 0.8.5\n\n### Workarounds\nRecommended action is to upgrade to 0.8.5.\n\n### References\nhttps://huntr.dev/bounties/50996581-c08e-4eed-a90e-c0bac082679c/\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Ask at https://github.com/shelljs/shelljs/issues/1058\n* Open an issue at https://github.com/shelljs/shelljs/issues/new","format":"markdown","source":"ghsa"}],"published":"2022-01-14T21:09:50.000Z","modified":"2022-01-14T20:50:57.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-269"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.8.5"}],"ecosystem":"npm","package":"shelljs","purl":"pkg:npm/shelljs","source":"ghsa"}],"references":[{"url":"https://github.com/shelljs/shelljs/security/advisories/GHSA-64g7-mvw6-v9qj","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/shelljs/shelljs","tags":["package"],"sources":["ghsa"]},{"url":"https://huntr.dev/bounties/50996581-c08e-4eed-a90e-c0bac082679c","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-64g7-mvw6-v9qj","url":"https://github.com/advisories/GHSA-64g7-mvw6-v9qj","licence":"CC-BY-4.0","modified":"2022-01-14T20:50:57.000Z"}],"updatedAt":"2026-11-25T22:56:44.288Z"}