1.4 KiB
1.4 KiB
description, shortcut
| description | shortcut |
|---|---|
| Check dependencies for vulnerabilities and outdated packages | depcheck |
Dependency Checker
Analyze project dependencies for known vulnerabilities, outdated packages, and license compliance issues.
Analysis Process
-
Detect Package Manager
- Identify package.json (npm/yarn/pnpm)
- Identify requirements.txt/Pipfile (pip)
- Identify composer.json (PHP)
- Identify Gemfile (Ruby)
- Identify go.mod (Go)
-
Vulnerability Scanning
- Check against CVE databases
- Identify known security advisories
- Report CVSS scores
- Check transitive dependencies
-
Version Analysis
- Identify outdated packages
- Check for available security patches
- Report breaking vs. non-breaking updates
- Suggest safe upgrade paths
-
License Compliance
- Scan dependency licenses
- Flag incompatible licenses
- Report license obligations
Report Output
Generate comprehensive dependency report with:
- Vulnerable packages with CVE details
- Outdated packages with available versions
- License compliance issues
- Recommended updates with impact analysis
- Upgrade commands for each package manager
Best Practices
- Run before every deployment
- Update dependencies regularly
- Review transitive dependencies
- Use lock files (package-lock.json, Pipfile.lock)
- Test after updating dependencies