Skip to content

HardenKit vs npm audit: what each one checks, and which to use

npm audit is the command built into the npm CLI that reports known vulnerabilities in the packages a Node.js project depends on.

The short answer

For a project that is only Node.js, npm audit is already installed and npm audit fix applies the updates, so start there. Reach for HardenKit when you have more than npm to check, when you ship container images, or when the audit list is long and you need to know which items are being exploited.

Made by
npm
Kind
Built-in npm command
License
Artistic-2.0
Price
npm audit is part of the npm CLI, which is free and open source under the Artistic License 2.0.
Coverage

What each one reads

npm audit ships with npm, so anyone who uses npm already has it. It sends the names and versions of the packages in your dependency tree to your registry and gets back a report of known vulnerabilities, each with a severity of low, moderate, high or critical. It also runs automatically during npm install, and npm audit fix applies compatible updates for you.

HardenKit scans npm packages too, and also PyPI, Go, Maven, Cargo, RubyGems, NuGet, Composer and Linux distribution packages in container images. It ranks findings by CISA KEV and EPSS, and checks Kubernetes manifests, GitHub Actions workflows and the AI stack. It does not change your files the way npm audit fix does.

DependenciesContainersKubernetesGitHub ActionsAI stackTerraformSecretsYour codeLicenses
HardenKitYesYesYesYesYesNoIn the config it checksNoNo
npm auditnpm packages onlyNoNoNoNoNoNoNoNo
YesPartly or with a conditionNot in its documentationNo
Priorities

How each one decides what comes first

A scan of a real project returns hundreds of findings. What a tool reads beyond the severity score decides which of them you see at the top.

HardenKit

  • Exploited now (CISA KEV)Yes
  • Likely to be exploited (EPSS)Yes
  • Reachable from your codeNo
  • One upgrade per packageYes

npm audit

  • Exploited now (CISA KEV)Not documented
  • Likely to be exploited (EPSS)Not documented
  • Reachable from your codeNo
  • One upgrade per packageApplied by npm audit fix
Strengths

What npm audit does well

Already there

npm audit is part of npm and runs automatically when you install a package with npm install. There is nothing to add to a Node.js project.

Applies the fix

npm audit fix installs compatible updates into the package tree. With --force it can also install versions outside your stated range, including major versions.

Checks package signatures

npm audit signatures verifies the registry signatures and provenance attestations of the packages you have downloaded.

Differences

Where HardenKit differs

More than npm

npm audit covers the npm dependency tree of one project. HardenKit scans npm, PyPI, Go, Maven, Cargo, RubyGems, NuGet and Composer packages, and Linux distribution packages in container images, in one run.

Ranking by exploitation data

npm audit reports a severity of low, moderate, high or critical. Its documentation does not mention CISA KEV or EPSS. HardenKit uses both to sort findings into FIX NOW, FIX SOON, PLAN and BACKLOG, so a medium-severity bug that is being exploited comes first.

A plan, not a change

npm audit fix edits your package tree. HardenKit never changes files. It prints one upgrade per package that resolves every fixable finding and leaves the change to you.

Side by side

HardenKit vs npm audit, row by row

FeatureHardenKitnpm audit
What it scans
Application dependenciesYesnpm packages only
Container images and OS packagesYesNo
Kubernetes manifests and Helm chartsYesNo
GitHub Actions workflowsYesNo
AI stack: LLM SDKs, MCP servers, model filesYesNo
Terraform and other infrastructure codeNoNo
Secrets in the repositoryIn the config it checksNo
Your own code (SAST)NoNo
Open-source licensesNoNo
How it ranks
Puts exploited vulnerabilities (CISA KEV) firstYesNot documented
Uses EPSS exploit likelihoodYesNot documented
Reachability analysisNoNo
One upgrade per package that clears its findingsYesApplied by npm audit fix
Fixing
Opens pull requests with the fixNoNo
Rescans on a schedule and alerts on changesYesNo
Terms
Open sourceApache-2.0Artistic-2.0
Runs without an accountYesYes
Free for commercial useYesYes

Checked against npm audit’s own documentation in November 2026. “Not documented” means we did not find it there, not that the product cannot do it. Tell us through the contact form if a row is out of date.

Which to use

When to pick which

Pick npm audit when

  • Your project is only Node.js and you want a check with nothing to install.
  • You want fixes applied to the lockfile for you with one command.
  • You want to verify registry signatures and provenance of installed packages.

Pick HardenKit when

  • Your repository mixes npm with Python, Go, Java or other ecosystems.
  • You ship container images and need the operating system packages checked.
  • You want to fail CI only on exploited or likely-to-be-exploited vulnerabilities.
  • You want scheduled rescans with alerts when a finding becomes more urgent.

Running both. Use HardenKit to decide what matters, then run npm audit fix or a targeted npm install to apply the npm upgrades it lists.

Questions

HardenKit and npm audit

Is npm audit enough?

For a small Node.js project it can be. It does not cover other languages, container images, Kubernetes manifests or workflow files, and it ranks by severity only. If you have any of those, add a scanner that covers them.

Is npm audit free?

Yes. It is part of the npm CLI, which is open source under the Artistic License 2.0.

What does npm audit fix do?

It applies remediations to your package tree by installing compatible updates. Some vulnerabilities cannot be fixed automatically and need manual review. With --force it may install major version changes.

Why does npm audit report so many vulnerabilities?

It reports the known vulnerabilities for every package in the dependency tree, including packages you did not add yourself. HardenKit puts the exploited and likely-to-be-exploited findings first, so you can start with those.

Does HardenKit scan npm packages?

Yes. HardenKit finds npm packages with Syft and matches them against OSV.dev, along with the other ecosystems in the project.

Run HardenKit beside npm audit and compare the top of the list

One command, no account. The scanner is free and open source.

$curl -sSfL https://hardenkit.com/install.sh | sh
See how the scanner works