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

Minimist vulnerability CVE-2021-44906 #674

Closed
1 of 3 tasks
anirudhb-sf opened this issue Mar 21, 2022 · 5 comments
Closed
1 of 3 tasks

Minimist vulnerability CVE-2021-44906 #674

anirudhb-sf opened this issue Mar 21, 2022 · 5 comments

Comments

@anirudhb-sf
Copy link

anirudhb-sf commented Mar 21, 2022

I'm submitting a ...

  • bug report
  • feature request
  • support request or question => Please do not submit support request or questions here, see note at the top of this template.

What is the current behavior?

minimist: v1.2.5 brings in a security vulnerability which is currently has no fix. The following dependency chain makes node-config a vulnerable package: config@3.2.4 › json5@1.0.1 › minimist@1.2.5.

What is the expected behavior?

Request for a security fix to make config package free from security vulnerabilities.

@markstos
Copy link
Collaborator

I don't see how node-config is vulnerable due to this. minimist supplies CLI-parsing functionality to the json5 package, but node-config does not use the json5 CLI.

This looks like "not-a-bug" to me, but I'll welcome a patch to bump the version of the json5 dependency when one is available just to have a dependency tree free of vulnerabilities.

@anirudhb-sf
Copy link
Author

@markstos I think we can close this issue as json5 has eliminated dependency on minimist with the closure of this issue in v2.2.1. Since node-config pulls in json5 as ^2.1.1 we should get in v2.2.1 of json5

@iblessedi
Copy link

I confirm that there is not an issue anymore. However older package may be cached and that's why you can see this issue. To fix this - remove node_modules folder, remove package-lock.json file and run npm i command again.

@leachjustin18
Copy link

I've also confirmed what @iblessedi said. Once I removed my node_moduels, package-lock.json, and re-ran npm install/yarn install, it fixed the issue.

@markstos
Copy link
Collaborator

I have pushed a commit to bump the version of json5 we require, to force upgrades to json5. I'm not putting out a new release today though since we aren't vulnerable, but I will if someone else has a problem with a related warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants