Batch-check dependencies against the OSV.dev API

domain: osv.dev · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Enumerate dependencies from your lockfile or SBOM (package name, version, ecosystem such as PyPI, npm, Go, Maven, etc.) into a structured list.
  2. Send a batch query with POST https://api.osv.dev/v1/querybatch, supplying a JSON body with a queries array where each element contains a package object with name and ecosystem, plus version.
  3. Parse the results array in the response; each element corresponds to the input query at the same index and contains a vulns array of matching OSV records with id, aliases (CVE IDs), summary, severity, and affected version ranges.
  4. Deduplicate findings by OSV ID across packages (the same vulnerability can appear for multiple dependency paths) and correlate aliases to CVE IDs for downstream enrichment.
  5. Integrate the batch call into CI pipelines so that dependency additions or version bumps trigger an automatic OSV check; fail the build or open a ticket when vulns with CVSS score above a threshold are found.

Known gotchas

Related routes

Batch-check multiple package versions for known vulnerabilities using the OSV.dev querybatch API
osv.dev · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans