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.
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.
| Dependencies | Containers | Kubernetes | GitHub Actions | AI stack | Terraform | Secrets | Your code | Licenses | |
|---|---|---|---|---|---|---|---|---|---|
| HardenKit | Yes | Yes | Yes | Yes | Yes | No | In the config it checks | No | No |
| npm audit | npm packages only | No | No | No | No | No | No | No | No |
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
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.
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.
HardenKit vs npm audit, row by row
| Feature | HardenKit | npm audit |
|---|---|---|
| What it scans | ||
| Application dependencies | Yes | npm packages only |
| Container images and OS packages | Yes | No |
| Kubernetes manifests and Helm charts | Yes | No |
| GitHub Actions workflows | Yes | No |
| AI stack: LLM SDKs, MCP servers, model files | Yes | No |
| Terraform and other infrastructure code | No | No |
| Secrets in the repository | In the config it checks | No |
| Your own code (SAST) | No | No |
| Open-source licenses | No | No |
| How it ranks | ||
| Puts exploited vulnerabilities (CISA KEV) first | Yes | Not documented |
| Uses EPSS exploit likelihood | Yes | Not documented |
| Reachability analysis | No | No |
| One upgrade per package that clears its findings | Yes | Applied by npm audit fix |
| Fixing | ||
| Opens pull requests with the fix | No | No |
| Rescans on a schedule and alerts on changes | Yes | No |
| Terms | ||
| Open source | Apache-2.0 | Artistic-2.0 |
| Runs without an account | Yes | Yes |
| Free for commercial use | Yes | Yes |
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.
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.
HardenKit and npm audit
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.
Yes. It is part of the npm CLI, which is open source under the Artistic License 2.0.
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.
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.
Yes. HardenKit finds npm packages with Syft and matches them against OSV.dev, along with the other ecosystems in the project.
Where these facts come from
Read in November 2026.
- npm Docs: npm audit
- npm Docs: about audit reports
- npm Docs: auditing package dependencies
- npm CLI repository
More comparisons
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