| name | dependency-audit |
| description | Audit project dependencies for vulnerabilities, outdated packages, license compliance, and supply chain risks. |
| metadata | {"thinkfleetbot":{"emoji":"📦","requires":{"anyBins":["npm","pnpm","pip","cargo","go"]}}} |
Dependency Audit
Scan dependencies for vulnerabilities, check for outdated packages, and verify license compliance.
Vulnerability Scanning
Node.js (npm/pnpm)
npm audit
npm audit --json | jq '{total: .metadata.vulnerabilities, critical: .metadata.vulnerabilities.critical, high: .metadata.vulnerabilities.high}'
npm audit fix
pnpm audit --json
Python (pip-audit)
pip-audit
pip-audit -r requirements.txt
pip-audit --format json -r requirements.txt
pip-audit --fix -r requirements.txt
Go
govulncheck ./...
govulncheck -show verbose ./...
Rust
cargo audit
cargo audit --json
Outdated Package Check
npm outdated --json | jq 'to_entries[] | {package: .key, current: .value.current, wanted: .value.wanted, latest: .value.latest}'
pnpm outdated --format json
pip list --outdated --format json | jq '.[] | {name, version, latest_version}'
go list -m -u all 2>/dev/null | grep '\['
cargo outdated
License Compliance
Node.js
license-checker --json | jq 'to_entries[] | {package: .key, license: .value.licenses}' | head -100
license-checker --failOn "GPL-3.0;AGPL-3.0" --json
license-checker --summary
Python
pip-licenses --format json | jq '.[] | {name: .Name, license: .License}'
pip-licenses --allow-only "MIT;BSD-3-Clause;Apache-2.0;ISC"
Dependency Tree
npm explain <package-name>
npm ls --all --json | jq '.dependencies | keys'
pip show <package-name> | grep -E "^(Requires|Required-by)"
go mod graph | grep <module-name>
cargo tree -p <crate-name>
Supply Chain Checks
npm audit signatures
npm info <suspicious-package> | head -5
npm view <package-name> time --json | jq 'to_entries | sort_by(.value) | last(3)'
Notes
- Run audits before merging dependency updates, not just on schedule.
npm audit fix --force can introduce breaking changes — review before running.
- License compliance matters for commercial software. GPL/AGPL in dependencies can require open-sourcing your code.
- Zero-day vulnerabilities won't show in audits — keep dependencies minimal.
- Pin exact versions in production (
package-lock.json, requirements.txt with ==).