Blog

OSV: The Dependency Vulnerability Standard Developers Need to Know

November 23, 2026 · 3 min read · AIssue team

OSV is a lightweight, precise, and ecosystem-aware vulnerability database that integrates seamlessly into your dependency scanning workflow. Learn why it matters for supply chain security.

You ship code every day. Your CI/CD pipeline checks for known vulnerabilities in your dependencies. But what database is it actually querying? How does it know if that old version of lodash you're using is vulnerable? The answer, increasingly, is OSV.dev — an open, structured standard for publishing and discovering software vulnerabilities.

In this post, we'll explain what OSV is, why it matters, and how it's reshaping how teams catch vulnerable dependencies before they hit production.

The Problem: Fragmented Vulnerability Data

Before OSV, vulnerability information lived in silos. Your tools checked NVD (National Vulnerability Database), GitHub Security Advisories, npm audit, and package-manager-specific feeds. Each worked independently.

Result? A vulnerability could be known in one database but missed by another. Teams manually cross-referenced multiple feeds. Patching was delayed. False positives created alert fatigue.

The cost: Weeks between disclosure and patching. Missed critical CVEs. Broken CI/CD pipelines from false alarms.

Enter OSV: A Better Standard

OSV.dev (Open Source Vulnerabilities) is a free, open-source vulnerability database backed by Google and maintained collaboratively. It uses a structured JSON schema to describe vulnerabilities in a way that tools can automatically understand and act on.

What Makes OSV Different

  1. Fast Updates — Hours, not weeks. Published as soon as discovered.
  2. Package-Agnostic — Python, JavaScript, Rust, Go, Ruby, Java, PHP, .NET
  3. Precise Version Ranges — Knows exactly which versions are affected
  4. Linked to Commits — Many entries include the fix commit, making remediation clear
  5. Free API — Query by package and version, vulnerability ID, or Git commit hash

The OSV Schema

Here's a simplified example:

{
  "id": "GHSA-1234-5678-9abc",
  "summary": "SQL injection in Django ORM",
  "affected": [{
    "package": {"ecosystem": "PyPI", "name": "django"},
    "ranges": [{"type": "ECOSYSTEM", "events": [{"introduced": "0"}, {"fixed": "3.2.10"}]}]
  }],
  "published": "2024-01-15T00:00:00Z",
  "database_specific": {"severity": "HIGH"}
}

Why this matters: Lockfile-based tooling can query OSV with your exact versions and get back only the CVEs that actually affect your code.

How It Works: Lockfile + OSV

This is the magic:

  1. You commit package-lock.json or Pipfile.lock (exact versions)
  2. A scanner (osv-scanner, pip-audit, AIssue) sends those exact versions to the OSV API
  3. OSV cross-references them against the version ranges in its database
  4. You get back only the vulnerabilities in the versions you really run — no false positives from versions you don't use

Without a lockfile? The tools fall back to loose version specs, which is less accurate.

Ready to See This in Action?

AIssue scans your dependencies against OSV data and shows you exactly which are vulnerable, what the fix is, and how critical it is.

Scan your repo free → — takes seconds, no sign-up needed.

How to Use OSV Today

Python: pip-audit

pip install pip-audit
pip-audit -s osv

By default pip-audit reads the PyPI advisory database (published in the OSV format); -s osv queries OSV.dev itself.

Node.js: npm audit

npm audit

npm audit reads the GitHub Advisory Database, which OSV.dev aggregates too. To query OSV directly, for any lockfile in any ecosystem, use Google's osv-scanner:

osv-scanner scan source -r .

Dependabot & Renovate

Renovate can raise vulnerability fixes from OSV data (osvVulnerabilityAlerts). Dependabot uses the GitHub Advisory Database, which is also published to OSV.

Direct API

curl https://api.osv.dev/v1/query \
  --data '{"package": {"ecosystem": "PyPI", "name": "django"}, "version": "3.2.0"}'

Common Mistakes

#1: Ignoring transitive dependencies

Your dependencies have dependencies. OSV finds vulnerabilities deep in the tree — but only if you check with a lockfile.

#2: Assuming automatic patching

OSV tells you a fix exists. You have to apply it. Test in CI first.

#3: Skipping the version ranges

A CVE might affect 2.5.x but not 2.6+. Use OSV's precision to understand what actually applies to you.

The Bottom Line

OSV is becoming the standard for vulnerability data. It's fast, precise, free, and package-agnostic. If you're not checking your dependencies against it, you're missing critical CVEs that tools like pip-audit, osv-scanner, and AIssue can catch in seconds.

One minute to scan. Hours to prevent a production incident.


Start scanning today: Analyze your repo free →

Questions? Find us on X.

Catch your errors before your users report them

AIssue groups your production errors into issues and explains why they happen, using your stack traces and your code.

Start for free

All posts