-
Notifications
You must be signed in to change notification settings - Fork 773
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
Monorepo: Fix npm audit security vulnerabilities (nyc / verdaccio / tap-spec / npm-auth-to-token) #1537
Comments
@holgerd77 I made a PR to upgrade |
Ok, looking into the remaining vulnerabilities here. One other high severe vulnerability is coming from tap-spec, which is a dev dependency in the VM package.json and is used for the formatter dev command for VM testing which routes to the formatTest.js script in the My first thought was that we might want to remove this formatter script all together since I guess this is rarely (not at all?) used. But on another thought it should already be enough to remove (so, some other context on |
Second high severe vulnerability is coming from npm-auth-to-token, an extremely obscure dev dependency which we should definitely remove. This has been published four years ago and there is neither a README nor a matching code/GitHub site available. Dependency is used in the E2E publish script (for doing the Hardhat tests) for logging in to npm, I guess this should be possible to be relatively easily achieved in a more standard way? 🤔 |
@holgerd77 I have a PR up for the first vulnerability. I found a more up-to-date fork of |
Update: I found a workaround for |
That's super cool, thanks! 🙂 👍 |
Most of this has been addressed, will close. Nevertheless: fixes on vulnerabilities from |
The `npm-auth-to-token` dependency is probably breaking. It has no readme or repo link: https://www.npmjs.com/package/npm-auth-to-token and has not been updated for 6 years. The issue is discussed here: ethereumjs/ethereumjs-monorepo#1537 and I am attempting the fix as seen here: https://github.com/ethereumjs/ethereumjs-monorepo/pull/1579/files#diff-02c8f04118065b423b5b599fe96dc405107c1a84c7840d9ec3b04627021aef69
Doing an
npm i
from the root directory onmaster
currently gives the following result:Many of these vulnerabilities are linked to outdated versions of
nyc
(see also #832) andverdaccio
, so we should give updates of these two libraries some priority in some first round.While both of the libraries are dev dependencies, generally having a large number of vulnerabilities shown on
npm audit
also comes with some greater risk of overlooking some more severe vulnerabilities.Mid-term we should optimally come to a situation where we just regularly update and get to a somewhat 0-vulnerabilities situation on all levels.
The text was updated successfully, but these errors were encountered: