npm security vulnerabilities 101

mahesh
Jul 21, 2022
npm security vulnerabilities

If you have seen a similar message above, you know how annoying it is. Sometimes even if you run npm audit fix or npm audit fix — force, it won’t fix those. The main reason for that is npm audit is broken by design, and you might be seeing some false positives.

Then how should we check for real results?

  1. Create a free account in Snyk
  2. You don't need to connect to Github or Bitbucket. Just ignore it.
  3. Install Snyk globally with npm i -g snyk
  4. Sign in by running snyk auth
  5. Run snyk test to run tests

Let me know in the comments if you know better ways of going about these..

--

--