OSV-Scanner
$ osv-scanner Official Low Riskosv-scanner matches project lockfiles, SBOMs, and repositories against Google's open OSV vulnerability database. It requires zero API keys, runs purely read-only, and outputs structured --format json or --format sarif results cleanly for automated remediation.
brew install osv-scanner Direct osv-scanner --format json checks local lockfiles in seconds with zero credentials or MCP schema overhead.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --format json, --format sarif, --format markdown, non-interactive defaults, and clear exit codes.
- Native
--format jsonand zero-auth execution
Strictly read-only; queries OSV.dev using package names/versions (no source code uploaded) and supports --offline mode.
- Zero file writes; sends only package coordinates unless
--offline
Single Go binary via brew, go install, Docker, and GitHub releases.
- Cross-platform static binary
Zero-account, high-signal CVE matching across npm, PyPI, Go, Cargo, Maven, and SBOMs.
- Supports major lockfile ecosystems and SPDX/CycloneDX SBOMs
Maintained by Google's Open Source Security Team under Apache-2.0.
- Official
google/osv-scannerrepository
Clean official documentation at google.github.io/osv-scanner/ covering CLI flags and offline mode.
- Well-structured official documentation
Security, Auth & Guardrails
None required; queries the public OSV.dev API (or local offline OSV database bundles) read-only.
100% free and open-source (Apache-2.0) using the open OSV.dev database.
# OSV-Scanner Agent Rules - Pass `--format json` for structured parsing; treat exit code `1` as vulnerabilities found (vs `127`/`128` errors). - Use `--offline` with `--download-offline-databases` in air-gapped CI environments.
Agent-Ready Command Recipes
Safe Read-Only Queries
osv-scanner scan --format json -r .
Scans all supported lockfiles in the workspace against OSV.dev and emits structured JSON.
osv-scanner scan --format json -L package-lock.json
Targets a single package-lock.json file for fast, focused vulnerability checks.
Strengths for Agents
- + Zero-auth, strictly read-only vulnerability scanning backed by open OSV.dev advisories.
- + Clean
--format jsonoutput without uploading proprietary source code.
Caveats & Pitfalls
- ! Requires internet access to query
api.osv.devunless pre-cached with--offline. - ! Subcommand structure shifted to
osv-scanner scanin v2 (v1 accepted flags directly).