In short: a scanner reads your lockfile and reports packages with a published vulnerability. Not every report is equally urgent. Start with what is known to be exploited, then what is likely to be, and update to a fixed version.

What code is actually running in your software?

Hardly any team writes everything itself. For sign-in, dates or sending mail, you take a package someone else has already made. Such a package is called a dependency.

The packages you choose yourself are your direct dependencies. But every package brings packages of its own, and those bring theirs. So far more of other people's code runs in your software than you ever picked. Those are the transitive dependencies.

They are the hard ones. When one has a flaw, you first have to trace which of your own packages pulled it in. And acting on it can affect the rest of the application, OWASP warns.

Why does a scanner need your lockfile?

Say two colleagues install the same project a week apart. With nothing else agreed, they can end up with different versions of the same package. A lockfile prevents that: it records which version of every package is installed. For npm it is package-lock.json, and it describes the exact tree that was generated.

That is why the file belongs in the repository. In a pipeline, the command npm ci installs exactly from it. When it does not match package.json, the command stops with an error.

A scan cannot do without this exact list. By default, npm audit refuses to run without a lockfile, and rightly so. Without one, nobody can say which version is live.

How a dependency scan works, in four stepsRead the lockfileexact packages andversionsMatchagainst advisorylistsPut in orderexploited firstUpdateto a fixed version
How a dependency scan works, in four stepsRead the lockfileexact packages and versionsMatchagainst advisory listsPut in orderexploited firstUpdateto a fixed version
Four steps in a row. Read the lockfile and match each package and version against the advisory lists. Put the findings in order and update to a fixed version.

Where do the reports come from, and why do they differ?

Point two scanners at the same project and you do not automatically get the same list. They draw on different sources, and no single source covers everything.

  • NVD is the National Vulnerability Database of the US institute NIST. It is a repository of information on software and hardware flaws.
  • GitHub Advisory Database holds advisories that GitHub has reviewed itself, and unreviewed ones that come straight from the NVD feed. Dependabot alerts only use the reviewed ones.
  • OSV collects vulnerability databases in one format, which states the affected versions of a package precisely. Its schema uses aliases to link the same vulnerability across databases.

So one vulnerability can be known under several identifiers. A good scanner matches them and reports it once.

Why is the npm audit list so long?

You run npm audit and get a screen full of warnings. What happened? The command sent your dependency list to the registry and asked which known vulnerabilities apply. Every match for a version in your tree comes back.

A long list is not yet an urgent one. Three things make it long.

  • It includes development-only packages, unless you leave them out with the option --omit=dev.
  • It reports vulnerabilities in packages that you cannot fix directly. For a chain that reaches your root project, the fix may need the --force option, npm says.
  • Severity says how bad a vulnerability would be, not how likely it is that someone uses it. Severity and exploit likelihood measure different things, FIRST stresses.

What do you fix first?

You have a long list and one afternoon. Where do you start? Two public sources help you put the list in order.

The first is KEV, the Known Exploited Vulnerabilities catalogue of the US government agency CISA. It lists vulnerabilities that are exploited in the wild. Use it as an input to your prioritisation, is CISA's own advice.

The second is EPSS, from the organisation FIRST. This score estimates the probability that a published vulnerability will be exploited within the next 30 days. It runs from 0 to 1 and is updated daily. A score of 0.05 means roughly five in a hundred. Most scores sit close to zero, so a high one stands out.

Four questions to put findings in orderExploited?in CISA's KEV listLikely?the EPSS scoreSevere?the advisory'sseverityIn production?or development only
Four questions to put findings in orderExploited?in CISA's KEV listLikely?the EPSS scoreSevere?the advisory's severityIn production?or development only
Four questions, one after the other. Is it known to be exploited, by the KEV list of CISA? Is it likely to be exploited soon, by EPSS? How severe is it? And does the package end up in what you ship? KEV comes first, as FIRST advises; the rest of the order is a suggestion.

EPSS is not a complete risk score, and FIRST says so itself. It says nothing about impact or about your own setup. Known exploitation in KEV therefore takes precedence.

How do you fix a finding?

The aim is simple: a version that is no longer affected. An advisory states the version that fixed the problem. The command npm audit fix applies such updates for you. But not everything can be applied automatically, npm warns.

Sometimes no fixed version exists yet. Tools detect vulnerable dependencies, they do not fix them. OWASP then suggests a temporary mitigation, such as isolating the affected feature.

What you should not do is change a version string to silence the scanner. OWASP warns about that too. It records a fix without making one.

Do vulnerabilities in test tools count too?

The scan reports a flaw in your test framework. Should that keep you awake? Less than a flaw in what you ship, but you cannot cross it off.

npm keeps two groups of packages apart: dependencies and devDependencies. The second group holds tools needed for development and testing. It is not installed when someone else uses your package.

So a vulnerability in such a package does not end up in what you ship. But those packages still run on developers' machines and in your pipeline. Install scripts can execute there, OWASP points out. Treat them as lower priority, not as ignorable.

And when a package is abandoned, or has a look-alike name?

A scan compares your packages with lists of advisories, so it only finds what has been reported. Two risks have no advisory yet.

The first is an abandoned package. Its owner can mark a version as deprecated, and npm then shows a warning on install. But a package can also be abandoned without ever being marked. So check the release history, and whether there is a real repository with commits. That is OWASP's advice.

The second is a name much like a popular one. Attackers publish malicious packages under such names, OWASP describes, and then one typo on install is enough. The same danger sits in names invented by AI tools, which attackers may then register. So check a suggested name with npm view before installing it.

What we check of this

We read your lockfiles and match every package, direct and indirect, against public lists of known vulnerabilities and known malicious packages. We also check that every language has a lockfile.

Findings that CISA lists as exploited, and those with a high EPSS score, are sorted first. We read and change nothing; you decide what to update.

Join the pilot

Sources, opened on 11 November 2026

Written by the BlueLandscape team with the help of AI. Every statement was checked against the source above.