-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Vulnerabilities (Prototype Pollution in yargs-parser
) after installation of @nrwl/react
plugin
#3105
Comments
This is also a problem for installations of nwrl/nx with Angular. npm audit security report Package yargs-parser Low Prototype Pollution Low Prototype Pollution Package yargs-parser found 4 low severity vulnerabilities in 1959 scanned packages |
Now there are 4 new HIGH vulnerabilities.
|
ISSUES CLOSED: nrwl#3105
|
ISSUES CLOSED: nrwl#3105
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
I ran
npm install --save-dev @nrwl/react
and at the end it finds 7 low severity vulnerabilities. When I runnpm audit fix
, none of these can be automatically fixed. When I runnpm audit
, I see that they are all related to Prototype pollution inyargs-parser
. This is the output:After searching a bit, I think I found that it is actually fixed in the latest version of
yargs-parser
, but that the new version has breaking changes. The vulnerability seems to be fixed in this PR and was reported in this issue. Other libraries usingyargs-parser
have similar issues, for example Gatsby.Expected Behavior
I would expect Nx to use the fixed version of
yargs-parser
and to deal with any issues that may arise from the breaking changes in the new version.Steps to Reproduce
Just install the react plugin into a new Nx project:
and read the output. Then try both
npm audit
andnpm audit fix
and read those outputs.Environment
The output of
nx report
:The text was updated successfully, but these errors were encountered: