-
Notifications
You must be signed in to change notification settings - Fork 809
yargs-parser vulnerability #2389
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
Comments
Updating yargs to 15.3.1 should solve this, but requiring it locally doesn't seem to solve |
Is it not possible to directly increase the required version in the package.json? With a new release the problem should solve itself. |
Is there any solution to this if you are not running Laravel Mix? |
I'm with the same problem. how resolve? I'm using laravel-mix but the vulnerability shows me yet. |
Also having this issue. Even on the v6 alpha. I think it is an issue with the yargs-parser package itself: yargs/yargs-parser#270 that still hasn't been fixed (unless I am missing something from what @dshoreman said) |
I just wrote an article on this issue's fix. Check it out on medium https://medium.com/@dieguiviti/yargs-parser-vulnerability-fix-5ab421663d22 |
I'm not on my dev machine thus haven't yet tested the workaround from Diego's blog post but, here's the tl;dr:
|
While the discussion in the last few comments will fix the originally posted audit report, it still won't fix all audit problems in
You can confirm this by running |
Hi, Update following files: Laravel 7.x
Run
|
@hicham-saddek 's solution worked for me.
thank you |
@G-Rath Why do you not like the solution of @hicham-saddek ? |
@nessor because it's a temporary solution: by forcing the resolution to a new major, you risk subtle and unpredictable bugs. I'm not opposed to forcing resolutions, but it's best done for patch & minor versions, not majors. |
I agree with @G-Rath about my solution being a temporary solution, and could fail at any moment, however it is a solution you can deploy only to temporarily fix this issue until the May your code work, and you PM happy 😄. |
The vulnerability has already been patched in
So this is waiting on @JeffreyWay to release a new version of I understand that this is an open-source project, and that people have lives and get busy so this isn't a go at him; I just want to highlight that this is a can that's been kicking around for a few months without action, and so it's looking more and more like it could be time to find a replacement tool. While being able to resolve this by forcing the resolution of the package is a good thing, it might not work for the next vulnerability that comes out on a dependency of |
@hicham-saddek Thanks for Your Answer, It worked. |
@hicham-saddek thank you sir |
@hicham-saddek Satisfied with the temporary solution, thank! |
Latest version of Mix uses the most current version of yargs. |
Uh oh!
There was an error while loading. Please reload this page.
Hello there,
npm is reporting a Prototype Pollution vulnerability on the yargs-parser dependency
Low - Prototype Pollution
Package: yargs-parser
Patched in >=13.1.2 <14.0.0 || >=15.0.1 <16.0.0 || >=18.1.2
Dependency of: laravel-mix [dev]
Path: laravel-mix > webpack-dev-server > yargs > yargs-parser
and same goes for
Path: laravel-mix > yargs > yargs-parser
The text was updated successfully, but these errors were encountered: