Definition
What is OSV?
OSV (Open Source Vulnerabilities) · also: osv.dev, OSV API
Short answer
Google's open, purl-indexed database and API aggregating vulnerability advisories across open-source ecosystems.
A distributed vulnerability database for open source with a precise, machine-readable schema (OSV schema) and a public API that accepts package URLs and versions. It aggregates ecosystem advisories including the GitHub Advisory Database, PyPA, RustSec, Go and Linux distributions, and returns affected version ranges rather than free-text descriptions, which makes automated SBOM matching reliable.
OSV advisories keep the identifier of their source (GHSA-…, PYSEC-…, RUSTSEC-…, GO-…) and list CVE IDs as aliases. The API answers single lookups and batches: send a package URL with its version and it returns the advisories whose affected ranges include that version. The osv-scanner command-line tool and many SBOM tools, including Vellaci's free SBOM validator, use the same API.
POST https://api.osv.dev/v1/query
{"package": {"purl": "pkg:npm/lodash@4.17.20"}}Reference: osv.dev
Updated · Paraphrase for orientation, not legal advice.
Frequently asked questions
- What is the OSV API?
- A free public HTTP API at api.osv.dev. POST /v1/query returns the advisories affecting one package version (by purl, or ecosystem plus name plus version); POST /v1/querybatch does the same for many packages at once.
- What is the difference between OSV and the NVD?
- The NVD catalogues CVEs and identifies affected products with CPE names. OSV aggregates ecosystem advisories and identifies affected packages with exact version ranges by package name or purl, which suits SBOM matching for open-source dependencies.
- Is OSV free?
- Yes. The database, schema, API and osv-scanner are open source and free to use.