使用 OSV.dev API 扫描项目依赖中的已知安全漏洞,支持 npm(package.json)、Python/pip(requirements.txt)和 Go(go.mo...)
Scan project dependencies against the OSV.dev vulnerability database. Zero config, no API keys.
bash
# Scan current directory (auto-detects project type)
python3 scripts/dep_vuln_scan.py .
# Scan a specific project
python3 scripts/dep_vuln_scan.py /path/to/project
# JSON output for CI/CD
python3 scripts/dep_vuln_scan.py . --json
# Scan only npm dependencies
python3 scripts/dep_vuln_scan.py . --ecosystem npm
FileEcosystempackage.jsonnpmrequirements.txtPyPIgo.modGo
Multiple files in the same directory are scanned together.
--json — Machine-readable JSON output--ecosystem <name> — Filter by ecosystem (repeatable)