CommandCross-platform
Shadow Audit
Scan npm Dependencies for Known Vulnerabilities
Analyzes your project's npm dependencies for known security vulnerabilities and outputs a clean summary of affected packages and their severity levels.
npm audit --json | jq '.vulnerabilities | to_entries[] | {name: .key, severity: .value.severity}'npm auditUsage Notes
- •
npm audit fixattempts to auto-fix vulnerabilities - •
npm audit fix --forcefixes even with breaking changes - •
--audit-level=highonly reports high/critical issues - •Run in CI/CD pipelines to catch vulnerabilities early
- •For yarn, use
yarn auditinstead
Warnings
- Warning:
--forcemay introduce breaking changes - test thoroughly - Warning:Some vulnerabilities may require manual intervention or package replacement
Related Scroll Ideas
- • Audit Python dependencies with pip-audit
- • Scan Docker images for vulnerabilities
- • Check for outdated dependencies