NPM Identify And Fix Insecure Dependencies
Posted By : Hotam Singh | 14-May-2018
NPM's latest version npm@6 has been launched and It has come with new powerful tool
Today I am going to discuss npm's new powerful
What is
Using
We can upgrade
$
Here is an example of
Just go to your existing
$ cd your-app
and type below command:?
$
And you will get some results like below:
It is showing low-security vulnerability. See below image also:
It is showing high vulnerability. It must be fixed before proceeding your further development.
It also shows suggestion to fix the given vulnerabilities.
At the end of the report, it will show you summarised report as you can see the last line in above screenshot.
You will see something like this if no security vulnerability found in your project.
What if I’m using a previous version of
you can use
How does this impact the JavaScript ecosystem?
In short term, npm audit will help among developers to raise awareness of known security vulnerabilities within applications that they are using.
In long term, prominent securoty vulnerability and warnings will raise and it will be helpfull for everyone. When a developer notices that they they are bringing a vulnerable dependency in their project, they can switch to a fixed version for that perticular dependency.
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Hotam Singh
Hotam has 1.5 years of experience in Node.JS. He has worked on Front End, JavaScript, Jquery, Backbone.JS, Database: MySQL, MongoDB. His hobbies are playing Sudoku/Puzzles and watching movies.