Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update shelljs to 0.8.5 to mitigate the vulnerability GHSA-64g7-mvw6-v9qj #360

Closed
kapi-caz opened this issue Jan 17, 2022 · 4 comments
Closed

Comments

@kapi-caz
Copy link

Hi!

loki-core uses shelljs in version 0.8.3 which has the vulnerability GHSA-64g7-mvw6-v9qj. There are no braking changes mentioned in 0.8.4 and 0.8.5 here. I checked out the code, updated shelljs and run the unit tests and didn't found an issue. Due to missing permissions I couldn't create a PR.

Thanks for your work!

@techeverri
Copy link
Collaborator

[...] Due to missing permissions I couldn't create a PR.

You have to fork the repository first. It should work as expected after that.
Feel free to create a pull request 👍

@kapi-caz
Copy link
Author

[...] Due to missing permissions I couldn't create a PR.

You have to fork the repository first. It should work as expected after that. Feel free to create a pull request 👍

Thanks! It's my first contribution to any open source project, hence didn't thought about forking!

@techeverri
Copy link
Collaborator

There is something I just realized reading the report below 👇
🔗 https://huntr.dev/bounties/50996581-c08e-4eed-a90e-c0bac082679c/

If ShellJS scripts running locally are using ShellJS exec function, local users on the filesystem can read the stdout of the running ShellJS process to disclose sensitive information present in the privileged process.

We don't use the exec function. We only use the which method.

function dependencyAvailable(dependency) {
return !!shell.which(dependency);
}

So Loki is not really affected by shelljs/shelljs#1058 and the patch shelljs/shelljs#1060 doesn't really change anything for Loki from a code perspective.

What do you think? @oblador

@oblador
Copy link
Owner

oblador commented Mar 26, 2022

Yeah, and also Loki's version is not locked to the vulnerable version. Simply update your project's lockfile, no change is really needed in Loki.

@oblador oblador closed this as completed Mar 26, 2022
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

No branches or pull requests

3 participants