Skip to content

npm audit + AppGuard

Built-in npm dependency vulnerability scanner for Node.js projects.

What is npm audit?

npm audit is the built-in security scanner for npm that checks your project dependencies against the npm advisory database. It identifies known vulnerabilities in your package-lock.json and provides remediation advice including version upgrades. It is the fastest way to check Node.js projects for dependency vulnerabilities.

Supported result formats

JSON

Integrate npm audit with AppGuard

1

Run npm audit

Run npm audit in your Node.js project with JSON output.

npm audit --json > results.json
2

Push to AppGuard

Send the results to AppGuard.

curl -X POST "$APPGUARD_PUBLIC_URL/api/ingest" \
  -H "X-Api-Token: $API_TOKEN" \
  -F "[email protected]"

What AppGuard adds to npm audit

Cross-language SCA view

See npm vulnerabilities alongside Python, Go, and other ecosystem findings.

Severity trending

Track dependency vulnerability trends across releases.

Remediation tracking

Track npm advisory fixes through their lifecycle.

Track npm audit results with AppGuard

Self-host AppGuard and connect npm audit in minutes. AGPLv3 licensed, full data ownership.

Frequently Asked Questions

What is the difference between npm audit and Snyk?
npm audit uses the npm advisory database and is built into npm. Snyk uses its own vulnerability database with additional data and fix advice. Snyk also supports more ecosystems. Use both for coverage.
Does npm audit work with yarn or pnpm?
npm audit only works with npm projects. For yarn, use yarn audit. For pnpm, use pnpm audit. All produce JSON output AppGuard can ingest.