Update Your Packages Before Someone Else Finds the Hole
Most apps are built on packages: code other people wrote that your app pulls in. When a security hole is found in a package, it gets listed as a known problem. If your app still uses an old version, it may still have that hole.
Try this today, in your project folder:
- Run
npm audit. It sends a list of your packages to the npm registry and asks for a report of known security problems. By default it needs apackage-lock.jsonfile. - Run
npm audit fixto apply the fixes npm can make on its own. npm says some problems can't be fixed this way and need a closer look. Skip--forceunless you're ready for big version jumps, because it lets npm install major updates outside the version range in yourpackage.json. - Run
npm outdatedto see which packages have newer versions. Red means a newer version fits the version range in yourpackage.json. Yellow means the newer version is outside that range, usually a big new release, so npm says to proceed with caution. - Update one package at a time, then test your app.
Do this every few weeks, not just once.
Good to know: the rooGBotVC scan doesn't look at your packages or run these commands. It checks what your live app shows the public, like exposed keys and missing security headers.
Want a quick check of your own app? Run a free scan at rooGBotVC.
See an example report (for example.org) · a real free scan of a test site, so you can see what you get