Skip to content

Conversation

@renovate
Copy link

@renovate renovate bot commented May 29, 2023

This PR contains the following updates:

Package Change Age Confidence
shelljs ^0.7.7 -> ^0.8.5 age confidence

GitHub Vulnerability Alerts

GHSA-64g7-mvw6-v9qj

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:

CVE-2022-0144

shelljs is vulnerable to Improper Privilege Management


Release Notes

shelljs/shelljs (shelljs)

v0.8.5

Compare Source

Full Changelog

This was a small security fix for #​1058.

v0.8.4

Compare Source

Full Changelog

This was a small security fix for #​1058.

v0.8.3

Compare Source

Full Changelog

Small patch release to fix a circular dependency warning in node v14. See #​973.

v0.8.2

Compare Source

Full Changelog

Closed issues:

  • Shelljs print stderr to console even if exec-only "silent" is true #​905
  • refactor: remove common.state.tempDir #​902
  • Can't suppress stdout for echo #​899
  • exec() doesn't apply the arguments correctly #​895
  • shell.exec('npm pack') painfully slow #​885
  • shelljs.exec cannot find app.asar/node_modules/shelljs/src/exec-child.js #​881
  • test infra: mocks and skipOnWin conflict #​862
  • Support for shell function completion on IDE #​859
  • echo command shows options in stdout #​855
  • silent does not always work #​851
  • Appveyor installs the latest npm, instead of the latest compatible npm #​844
  • Force symbolic link (ln -sf) does not overwrite/recreate existing destination #​830
  • inconsistent result when trying to echo to a file #​798
  • Prevent require()ing executable-only files #​789
  • Cannot set property to of [object String] which has only a getter #​752
  • which() should check executability before returning a value #​657
  • Bad encoding experience #​456
  • phpcs very slow #​440
  • Error shown when triggering a sigint during shelljs.exec if process.on sigint is defined #​254
  • .to\(file\) does not mute STDIO output #​146
  • Escaping shell arguments to exec() #​143
  • Allow multiple string arguments for exec() #​103
  • cp does not recursively copy from readonly location #​98
  • Handling permissions errors on file I/O #​64

Merged pull requests:

v0.8.1

Compare Source

Full Changelog

Closed issues:

  • High severity vulnerability in shelljs 0.8.1 #​842
  • Add test for ls() on a symlink to a directory #​795
  • Harden shell.exec by writing the child process in a source file #​782
  • shell.exec() doesn't respond correctly to config.fatal = true #​735
  • Merge 'exec: internal error' with ShellJSInternalError #​734
  • exec returning null from command #​724
  • Only Get Stderr from Exec #​371
  • Execute child.stdout.on before child.on("exit") #​224

Merged pull requests:

v0.8.0

Compare Source

Full Changelog

Closed issues:

  • Exec failing with internal error when piping large output #​818

Merged pull requests:

v0.7.8

Compare Source

Full Changelog

Closed issues:

  • Snyk vulnerability DB reporting command injection vulnerability in ShellJS #​810
  • chore: upgrade nyc #​803
  • Update CI to use Node v9 #​799
  • Link to FAQ wiki section in our issue template #​787
  • Is it possible to get a js library(file) for ShellJS #​776
  • 48, #​774
  • 47 #​773
  • Exec function calls JSON.stringify on command #​772
  • getting different result from terminal and with shelljs #​769
  • test() does not support -w and -x options #​768
  • Snyk "high severity" issue #​766
  • Snyk "high security #​765
  • ShellJS doesn't respect NPM Registry being set outside of it #​761
  • Run second shell script #​756
  • shelljs seems NOT compatible with nexe under CentOS 6.5 #​754
  • Feature request: pushd/popd -q option #​753
  • cat doesn't support '-n' option #​750
  • shelljs run xcodebuild error #​749
  • Add wrappers around fs.statSync and fs.lstatSync #​745
  • Improve coverage for exec() #​742
  • Improve coverage for head() #​741
  • shelljs is no longer used in PDF.js #​737
  • ls doesn't follow links to directories #​733
  • Add test for ls regular-file.txt #​732
  • Clean up common tests #​714
  • Cant get encoding buffer to work on exec #​675
  • Set up Codecov for the project #​671
  • ShellJS: internal error Error: EBUSY: resource busy or locked, lstat 'C:\pagefile.sys' #​514
  • Feature request: provide a way to skip option parsing #​778
  • Switch to os.homedir() when we move to v4+ #​683
  • Drop support for v0.12 #​647
  • feature: echo -n #​559
  • Don't kill the node process upon unexpected error #​483
  • Echo doesn't return value ending in a trailing newline #​476
  • Synchronous exec stalls permenantly when there is an error/w the shell #​7

Merged pull requests:


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title Update dependency shelljs to ^0.8.0 [SECURITY] Update dependency shelljs to ^0.8.5 [SECURITY] Jun 1, 2023
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch from 2cba2ac to 8fc2393 Compare June 1, 2023 16:20
@renovate renovate bot changed the title Update dependency shelljs to ^0.8.5 [SECURITY] Update dependency shelljs to ^0.8.0 [SECURITY] Jun 9, 2023
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch 2 times, most recently from d91da04 to 2a36205 Compare June 10, 2023 14:16
@renovate renovate bot changed the title Update dependency shelljs to ^0.8.0 [SECURITY] Update dependency shelljs to ^0.8.5 [SECURITY] Jun 10, 2023
@renovate renovate bot changed the title Update dependency shelljs to ^0.8.5 [SECURITY] Update dependency shelljs to ^0.8.0 [SECURITY] Jun 14, 2023
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch 2 times, most recently from 966ae5f to b12c5c1 Compare June 17, 2023 05:21
@renovate renovate bot changed the title Update dependency shelljs to ^0.8.0 [SECURITY] Update dependency shelljs to ^0.8.5 [SECURITY] Jun 17, 2023
@renovate renovate bot changed the title Update dependency shelljs to ^0.8.5 [SECURITY] Update dependency shelljs to ^0.8.0 [SECURITY] Jun 18, 2023
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch from b12c5c1 to 774d406 Compare June 18, 2023 17:26
@renovate renovate bot changed the title Update dependency shelljs to ^0.8.0 [SECURITY] Update dependency shelljs to ^0.8.5 [SECURITY] Jun 23, 2023
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch from 774d406 to 4cf3fee Compare June 23, 2023 02:19
@renovate renovate bot changed the title Update dependency shelljs to ^0.8.5 [SECURITY] Update dependency shelljs to ^0.8.0 [SECURITY] Jun 30, 2023
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch from 4cf3fee to dc49a4b Compare June 30, 2023 02:53
@renovate renovate bot changed the title Update dependency shelljs to ^0.8.0 [SECURITY] Update dependency shelljs to ^0.8.5 [SECURITY] Jul 1, 2023
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch from dc49a4b to 798bf88 Compare July 1, 2023 02:08
@renovate renovate bot changed the title Update dependency shelljs to ^0.8.5 [SECURITY] Update dependency shelljs to ^0.8.0 [SECURITY] Jul 7, 2023
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch from 798bf88 to bb0cdf2 Compare July 7, 2023 05:44
@renovate renovate bot changed the title Update dependency shelljs to ^0.8.0 [SECURITY] Update dependency shelljs to ^0.8.5 [SECURITY] Jul 8, 2023
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch from bb0cdf2 to 932fcfe Compare July 8, 2023 08:58
@renovate renovate bot changed the title Update dependency shelljs to ^0.8.5 [SECURITY] Update dependency shelljs to ^0.8.0 [SECURITY] Jul 10, 2023
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch from 932fcfe to 5c7276f Compare July 10, 2023 02:47
@renovate renovate bot changed the title Update dependency shelljs to ^0.8.0 [SECURITY] Update dependency shelljs to ^0.8.5 [SECURITY] Jul 11, 2023
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch from 5c7276f to aeb2ec7 Compare July 11, 2023 23:52
@renovate renovate bot changed the title Update dependency shelljs to ^0.8.5 [SECURITY] Update dependency shelljs to ^0.8.0 [SECURITY] Jul 17, 2023
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch from aeb2ec7 to d0b30d1 Compare July 17, 2023 02:55
@renovate renovate bot changed the title Update dependency shelljs to ^0.8.0 [SECURITY] Update dependency shelljs to ^0.8.5 [SECURITY] Jul 18, 2023
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch from d0b30d1 to 2eac1f4 Compare July 18, 2023 08:45
@renovate renovate bot changed the title Update dependency shelljs to ^0.10.0 [SECURITY] Update dependency shelljs to ^0.8.5 [SECURITY] Jun 1, 2025
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch from 820cd66 to 65674c2 Compare June 6, 2025 13:18
@renovate renovate bot changed the title Update dependency shelljs to ^0.8.5 [SECURITY] Update dependency shelljs to ^0.10.0 [SECURITY] Jun 6, 2025
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch from 65674c2 to e5afc2a Compare June 8, 2025 15:58
@renovate renovate bot changed the title Update dependency shelljs to ^0.10.0 [SECURITY] Update dependency shelljs to ^0.8.5 [SECURITY] Jun 8, 2025
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch from e5afc2a to b11fcb4 Compare June 28, 2025 23:54
@renovate renovate bot changed the title Update dependency shelljs to ^0.8.5 [SECURITY] Update dependency shelljs to ^0.10.0 [SECURITY] Jun 28, 2025
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch from b11fcb4 to f8cc9e1 Compare July 19, 2025 20:13
@renovate renovate bot changed the title Update dependency shelljs to ^0.10.0 [SECURITY] Update dependency shelljs to ^0.8.5 [SECURITY] Jul 19, 2025
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch from f8cc9e1 to 7376b4f Compare August 14, 2025 19:34
@renovate renovate bot changed the title Update dependency shelljs to ^0.8.5 [SECURITY] Update dependency shelljs to ^0.10.0 [SECURITY] Aug 14, 2025
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch from 7376b4f to 5b6df4e Compare August 16, 2025 07:36
@renovate renovate bot changed the title Update dependency shelljs to ^0.10.0 [SECURITY] Update dependency shelljs to ^0.8.5 [SECURITY] Aug 16, 2025
@renovate renovate bot changed the title Update dependency shelljs to ^0.8.5 [SECURITY] Update dependency shelljs to ^0.10.0 [SECURITY] Aug 23, 2025
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch from 5b6df4e to 8983541 Compare August 23, 2025 19:52
@renovate renovate bot changed the title Update dependency shelljs to ^0.10.0 [SECURITY] Update dependency shelljs to ^0.8.5 [SECURITY] Aug 25, 2025
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch from 8983541 to 95aade0 Compare August 25, 2025 04:14
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch from 95aade0 to 3336dbb Compare September 1, 2025 15:00
@renovate renovate bot changed the title Update dependency shelljs to ^0.8.5 [SECURITY] Update dependency shelljs to ^0.10.0 [SECURITY] Sep 1, 2025
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch from 3336dbb to f6415c6 Compare September 2, 2025 19:59
@renovate renovate bot changed the title Update dependency shelljs to ^0.10.0 [SECURITY] Update dependency shelljs to ^0.8.5 [SECURITY] Sep 2, 2025
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch from f6415c6 to 10b5607 Compare September 26, 2025 07:40
@renovate renovate bot changed the title Update dependency shelljs to ^0.8.5 [SECURITY] Update dependency shelljs to ^0.10.0 [SECURITY] Sep 26, 2025
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch from 10b5607 to 62e7e6b Compare September 27, 2025 10:42
@renovate renovate bot changed the title Update dependency shelljs to ^0.10.0 [SECURITY] Update dependency shelljs to ^0.8.5 [SECURITY] Sep 27, 2025
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch from 62e7e6b to 1bcb619 Compare October 25, 2025 19:30
@renovate renovate bot changed the title Update dependency shelljs to ^0.8.5 [SECURITY] Update dependency shelljs to ^0.10.0 [SECURITY] Oct 25, 2025
@renovate renovate bot changed the title Update dependency shelljs to ^0.10.0 [SECURITY] Update dependency shelljs to ^0.8.5 [SECURITY] Oct 27, 2025
@renovate renovate bot force-pushed the renovate/npm-shelljs-vulnerability branch from 1bcb619 to dafc5b1 Compare October 27, 2025 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant