OSV-Scanner logo

OSV-Scanner

Scans dependencies against the OSV vulnerability database

Open Source Alternative to
Repository activity
  • Stars10.5k
  • Forks721
  • Open Issues120
google-osv-scanner health score - Linux Foundation Insights
License

Apache-2.0

Languages
  • Go
  • Python
  • Go Template
OSV-Scanner screenshot

About OSV-Scanner

OSV-Scanner is a command line vulnerability scanner that connects a project's dependencies to the advisories that affect them. It is the official frontend to OSV.dev, an open, distributed database whose advisories come from authoritative sources like GitHub Security Advisories, RustSec, and Ubuntu security notices.

It recursively scans source directories across a wide range of languages and lockfiles, scans container images layer by layer, and detects vulnerabilities in Linux OS packages. Guided remediation recommends version upgrades weighed by dependency depth, severity, fix strategy, and return on investment. It can also run license scanning and detect vendored C/C++ code.

Written in Go and built on the OSV-Scalibr library, it ships prebuilt binaries and installs with go install. An offline mode scans against a local copy of the database without querying OSV.dev or deps.dev.

Key features

  • Scans source directories and lockfiles for known CVEs
  • Layer-aware scanning of container images
  • Detects vulnerabilities in Linux OS packages
  • Guided remediation for dependency upgrades
  • Offline scanning against a local database

Details

First released
2022
Language
Go
Platforms
CLI · Linux · macOS · Windows
Deployment
self-hostable · offline
Database
OSV.dev
Origins
Google