OSV (Open Source Vulnerabilities)
Open-source package vulnerabilities (OSV.dev, Google)
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
No auth
Tools (3)
OSV (Open Source Vulnerabilities) API request
OSV_SEND_REQUESTCall to the OSV (Open Source Vulnerabilities) API (https://api.osv.dev/v1). Any endpoint of the API is allowed. Examples: POST /query {"package": {"name": "lodash", "ecosystem": "npm"}, "version": "4.17.20"}, POST /query {"package": {"purl": "pkg:pypi/django@4.2.0"}}, POST /query {"commit": "…"}, POST /querybatch {"queries": [{…}, {…}]} (returns only the ids; up to 1,000 queries), GET /vulns/{id} (GHSA-…, CVE-…, PYSEC-…, GO-…, RUSTSEC-…, DSA-…). Ecosystems: npm, PyPI, Maven, Go, NuGet, RubyGems, crates.io, Packagist, Debian:12, Alpine:v3.20… Long responses are paginated with page_token (next_page_token).
Required scopes
No scopes required
Input
OSV (Open Source Vulnerabilities) API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically. Vulnerabilities of a package
OSV_QUERY_PACKAGEKnown vulnerabilities of an open-source package in one version (or in all if none is given): id (GHSA, PYSEC, RUSTSEC…), CVE aliases, summary, severity, CVSS vector, CWE and the versions that fix them. Accepts name + ecosystem, a purl (pkg:npm/lodash@4.17.20) or a commit.
Required scopes
No scopes required
Input
Vulnerabilities of a package input Name Type Description package_namestringPackage name, e.g. lodash, django, org.apache.logging.log4j:log4j-core ecosystemstringnpm, PyPI, Maven, Go, NuGet, RubyGems, crates.io, Packagist, Debian:12… versionstringInstalled version; without it, all the vulnerabilities of the package are returned purlstringPackage URL instead of name and ecosystem commitstringCommit hash (instead of package) Details of a vulnerability
OSV_GET_VULNERABILITYDetails of a vulnerability by its id (GHSA-…, CVE-…, PYSEC-…, GO-…, RUSTSEC-…): aliases, summary, details, CVSS, CWE, dates, affected packages with their version ranges (affected and fixed) and references.
Required scopes
No scopes required
Input
Details of a vulnerability input Name Type Description idrequiredstringIdentifier, e.g. GHSA-jfh8-c2jp-5v3q or CVE-2021-44228

