-
-
Notifications
You must be signed in to change notification settings - Fork 27k
302 moderate severity vulnerabilities in npm audit due to minimist package #8672
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
Same issue here, except mine says 583 low severity vulnerabilities. But I'm just curious about something from looking at the path. Does this mean the rc package dependency needs to be updated? Or the react-scripts dependency? Or something else entirely? |
Stopped by to say I'm also having the same issue with 583 low severity vulnerabilities. |
@briannakeune @mdodge-ecgrow If you have 583 then you likely need to update react-scripts to 3.4.0. Change your package.json files to I still have the 302 low-security vulnerabilities though. |
I think this is a |
@kbarnesweb My current package.json says |
After recommended fix - "Change your |
@ddd-37 The carrot shouldn't be the reason it works or not in this case. I tried updating jest and it fixed 300 of the 302 issues. If you want to recreate this: Run Reinstall |
@ddd-37 I believe the final 2 issues are due to mkdirp still using an old version of minimist. I'll post here if I find a fix. |
Can confirm. With react-scripts and node-sass, I got a total of 283 low severity vulnerabilities and it's all minimist, which seems to be a dependency of mkdirp in all cases. Mkdirp is using an old version of minimist. "mkdirp": {
"version": "0.5.1",
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
"integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
"requires": {
"minimist": "0.0.8"
}, Seems like a fix is underway, though. |
It appears like they've closed the issue. Does that mean it's done? The only resolution they gave at the end only applies to Yarn users and requires the user to manually do something. What about NPM users? And shouldn't this be a fix that is automatic and just happens when updating to the latest packages? |
Also having this issue. In my case, i just created a new project and i have 2 "Prototype Pollution" low severity vulnerabilities. They are both due the package "minimist", which are dependency of "react-scripts". |
I ran into the same issue, although I'm using my own React boilerplate w/ Babel and Webpack, not create-react-app. Turns out the chokidar package was using an older version of minimist (and was likely outdated itself). Running |
This appears to be fixed in ^3.4.1 install react-scripts@latest to solve this |
I still have it, even in 3.4.1, with yarn audit |
Solution:
That's it. :) |
I am also still getting this issue after upgrading to react-scripts 3.4.1. I've temporarily used @amit14apr's solution above, but it would be nice if it could be fixed at source. Has this issue been incorrectly closed, or are we missing some required step to make it work? |
After reinstalling node modules and yarn lock, everything works fine now. Thanks ;) |
Describe the bug
I have prepared new project with create-react-app. and then I have tried to run
npm audit
.in that I got following output
Environment
package.json
System npm and node version:
Expected behavior
It should use suggested updated version of package
minimist
.The text was updated successfully, but these errors were encountered: