OSV-Scanner
Google's reachability-aware dependency, lockfile, and container vulnerability scanner
WHAT IS IT?
OSV-Scanner is an open-source vulnerability scanner maintained by Google's Open Source Security Team. It queries the distributed OSV.dev schema directly using exact package ecosystem identifiers and commit hashes rather than fuzzy CPE strings.
WHY USE IT? // PRACTICAL USE CASES
Traditional CPE-based scanners flood engineering teams with false positives for transitive dependencies whose vulnerable functions are never actually imported or called. OSV-Scanner uses exact ecosystem advisories (GitHub Security Advisories, RustSec, PyPA, Go, Debian/Alpine) and supports function-level reachability pruning.
- [1] Auditing lockfiles (`pnpm-lock.yaml`, `package-lock.json`, `Cargo.lock`, `go.mod`, `requirements.txt`) against precise OSV version ranges
- [2] Filtering out false-positive dependency alerts using symbol/call-graph reachability analysis (`--experimental-call-analysis`)
- [3] Guided interactive remediation (`osv-scanner fix`) to compute minimal non-breaking version upgrades
HOW DO I GET IT? // SAFE INSTALLATION GUIDANCE
Install via system packages (`pacman -S osv-scanner`, `brew install osv-scanner`), `go install github.com/google/osv-scanner/cmd/osv-scanner@v1`, or signed GitHub releases.
HOW DOES IT WORK? // INTERNAL ARCHITECTURE OVERVIEW
OSV-Scanner extracts package coordinates from lockfiles, SBOMs (CycloneDX/SPDX), git commit hashes, or container layers, batch-queries the OSV.dev API (or local offline database), and optionally constructs static call graphs to verify whether vulnerable symbols are reachable.
RELATED & COMPLEMENTARY TOOLS
RELATED THREAT RESEARCH
Verified CISA KEV advisories where OSV-Scanner is directly relevant for detection, forensic triage, or architectural mitigation:
Apache Log4j2 Remote Code Execution Vulnerability