-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Peer Dependency has Security Vulnerability #1661
Comments
Possible duplicate of #1658 (at least optimist is deprecated and probably won't bump minimist) |
same here, please update asap, Thanks a lot
|
If you use Yarn, here's a workaround for now until this is fixed (maybe with #1662): Add the following resolution to your "resolutions": {
"**/optimist/minimist": "0.2.1"
} This will force all versions of |
Edit This approach may break your app depending on the dependency situation. Please read #1661 (comment) and be cautious!
|
@yudai-nkt unfortunately, because This is true in the case that you posted above. Review your lockfile entry for
As far I know, this shortcoming is also true for In case you absolutely cannot use Yarn, what you may be able to do, which would be more safe would be:
But... huge shortcoming - this edit could be destroyed by future npm commands. Without proper resolutions support, it looks like npm is not up to the task here. |
@karlhorky I'm aware of the potential breakage, and I went this direction for the following reasons:
That being said, I obviously didn't explain enough and it can cause future readers' misunderstanding. I appreciate your thorough supplement! |
The long term solution is to use yargs instead of optimist, right? Do we have an ETA on that? |
@yudai-nkt would it perhaps work if in |
@karlhorky what do you think, forcing |
@jfoclpf unfortunately, there are other dependencies on
So if you force |
@karlhorky ok, that would depend on each package we have. On what
Is there on this dependency tree any case wherein |
People use |
Is it fair to assume that the master branch is the most current working branch? If so, is there a version bump coming soon? |
4.x is tbe current working branch... I have had another look. The change itself does not seem to be a big deal, but I really need to be sure that it does not break anything in the CLI. I am not in a situation where I can quickly revert anything. So either there need to be some tests in #1662 for the CLI. Have a look at the tasks folder in the tests-bin.js file. There is one test already but the file certainly needs to be refactored a bit in order to cleanly contain multiple tests. |
I started adding some tests in #1666, but since I'm not using handlebars, I'd be happy to be guided on which additional tests to add. |
Closed by #1666 and released in 4.7.4. |
Hello there,
since today, a new issue in minimist < 1.2.3 is found:
https://www.npmjs.com/advisories/1179
This lib is using optimist 0.6.1, which requires minimist in 0.0.10, which is obviously affected.
Will there be a new version with a fix for this? Our Security-Scanner is running wild because of this.
Thanks & Best Regards
The text was updated successfully, but these errors were encountered: