ITNEXT

ITNEXT is a platform for IT developers & software engineers to share knowledge, connect…

Follow publication

Member-only story

Fixing security vulnerabilities in npm dependencies in less than 3 mins

npm dependency graph as cover image
https://miro.medium.com/max/1021/1*MrEp6Y0l1B7Ixt5mfE3fWA.png

Hola people!!! 🥑

It’s been a while since I have written a blog and now since most of us are working from home, the time that used to go in commute is now saved and I thought why not utilize this time and write about my recent experience of fixing a security vulnerability.

So if any of you in the recent time have seen something like this image below and have no clue how to fix it then this article is for you. When I saw it, I had no clue either but with some research I could fix this.

🔬 Problem:

So what this means is one of the dependencies in your package.json has some security implications which can be exploited by an attacker and can cause problems for you, your product, for users of your product or the company you work for.

For example: https://snyk.io/vuln/npm:eslint:20180222

This vulnerability could have caused a Regular Expression Denial of Service

💡 Finding:

In order to find potential vulnerabilities in your repo, you can either do

  1. npm audit — which should show you an output like the following image:

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Published in ITNEXT

ITNEXT is a platform for IT developers & software engineers to share knowledge, connect, collaborate, learn and experience next-gen technologies.

Written by Vivek Nayyar

Engineering Manager and Board game enthusiast

Responses (9)

I’m not the best frontend person but I’m sorry to say, this does not sound like an actual fix to me. You provided some good instructions, but they are more or less… ‘workarounds’. The steps do not even look at what error it is. It just hopes for…