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:

  1. 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 a package-lock.json file.
  2. Run npm audit fix to 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 --force unless you're ready for big version jumps, because it lets npm install major updates outside the version range in your package.json.
  3. Run npm outdated to see which packages have newer versions. Red means a newer version fits the version range in your package.json. Yellow means the newer version is outside that range, usually a big new release, so npm says to proceed with caution.
  4. 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