Skip to main intelligence content
SOURCES: CISA KEV + NIST NVD 2.0 + FIRST EPSS
LOOT & EXPLOITS
DEFENSIVE VULN & TOOL TRIAGE

PAID STACK WATCH · $99/year or $12/month

Back to The Loot Arsenal
Last Verified: 2026-11-12

OSV-Scanner

Google's reachability-aware dependency, lockfile, and container vulnerability scanner

LicenseApache-2.0
Difficulty LevelBeginner
Supported OSLinux, Windows, macOS
Verification Date2026-11-12

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.

Verified Operational Use Cases:
  • [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.

Supply-Chain Hygiene: Always verify package signatures via your OS package manager or validate SHA-256 digests on official release artifacts. Never pipe uninspected remote shell scripts into `sudo sh`.

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.