npm audit + servasec
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.
Built into npm (no install needed)Advisory database cross-referencingAutomatic fix suggestionsLock file analysisCI/CD integration via exit codes
Integrate npm audit with servasec
1
Run npm audit
Run npm audit in your Node.js project with JSON output.
npm audit --json > results.json
2
Push to servasec
Send the results to servasec.
curl -X POST "$SSC_PUBLIC_URL/api/ingest" \ -H "X-Api-Token: $API_TOKEN" \ -F "[email protected]"
What servasec 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.