OSV Vulnerability Details API
Use the OSV Vulnerability Details API to retrieve a known vulnerability record by its database identifier. Provide the exact OSV, GHSA, CVE, or other supported record ID and receive the available advisory text, affected packages and ranges, publication and modification dates, severity information, and reference links. Use the record to investigate a batch-query match, document remediation evidence, or refresh a vulnerability knowledge base. Alias identifiers are included when supplied by the source, and withdrawn records must be interpreted using their withdrawal timestamp. The detail page includes complete request and response examples, the identifier parameter, and per-request pricing.
- Selected price
- $0.005 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
OSV Vulnerability Details API
Prepare your request, then continue with your agent.
Selected price
$0.005 / call
- Provider
- Pricing
On this page
Overview
OSV Vulnerability Details API
Use the OSV Vulnerability Details API to retrieve a known vulnerability record by its database identifier. Provide the exact OSV, GHSA, CVE, or other supported record ID and receive the available advisory text, affected packages and ranges, publication and modification dates, severity information, and reference links. Use the record to investigate a batch-query match, document remediation evidence, or refresh a vulnerability knowledge base. Alias identifiers are included when supplied by the source, and withdrawn records must be interpreted using their withdrawal timestamp. The detail page includes complete request and response examples, the identifier parameter, and per-request pricing.
What this API returns
Retrieve one advisory record after a package query, a batch match, or a known database identifier. OSV returns the source record in its structured vulnerability format, including affected ranges and remediation references when available.
When to use it
- Expand a compact batch match into its advisory record.
- Collect affected version ranges and fix references for remediation review.
- Refresh a local vulnerability knowledge base using modification timestamps.
Inputs and result handling
Set the required path parameter id to the exact identifier of an indexed record. It is case-sensitive: preserve GHSA, OSV, or CVE spelling as supplied by the database. A CVE listed only as an alias does not guarantee that a separate record exists under that exact ID. This GET request has no JSON body or query parameters.
The response is one vulnerability object. Available fields include id, summary, details, aliases, affected, references, severity, credits, published, modified, and withdrawn. Not every record includes every optional field. Unlike POST queries, this endpoint can return withdrawn records; inspect withdrawn before treating the advisory as active. A missing record is not proof that a package is free of vulnerabilities.
Large queries: batch pagination plus details
A single response through this configuration is limited to 8 MiB (8,388,608 bytes). This is an OpenAny configuration limit, not the OSV source response limit. Large /v1/query pages can exceed it: a recorded Debian:12 linux 6.1.27-1 query produced four pages from 10,027,844 to 12,420,820 bytes. Such pages are unsupported by this configuration even when OSV responds with HTTP 200.
- Submit the package/version or commit as an item in POST /v1/querybatch. This returns compact vulnerability IDs and modification timestamps, not full advisories.
- Keep each result associated with its input query. For each result with next_page_token, resubmit that same query with its token in page_token. Only unfinished queries need to be sent again.
- Continue until all result items have no next_page_token. A response containing only a token is unfinished, even if vulns is absent. Use tokens rather than an assumed page size or fixed page count.
- Deduplicate the collected IDs, then call GET /v1/vulns/{id} for the full records you need. Each detail response is also subject to the 8 MiB limit.
These are separate client requests; this API does not automatically combine pages or fetch details. Each successful batch page and each successful detail lookup costs USD 0.005. One batch containing several package queries is charged once per successful HTTP request, not once per package. Deduplicate IDs before detail lookups to avoid unnecessary requests.
In the recorded Debian example, querybatch completed in 10 pages of about 65–72 KB and returned the same 9,910 IDs as five direct single-query pages. For that observed dataset, 10 successful batch requests cost USD 0.050; requesting all 9,910 unique details would add USD 49.550, for USD 49.600 in total. Actual cost depends on pages and details requested. The source has no page_size parameter that can guarantee a single-query response below 8 MiB, and compact batch responses remain subject to the same platform limit.
{
"queries": [
{
"package": {
"name": "linux",
"ecosystem": "Debian:12"
},
"version": "6.1.27-1"
}
]
}Quick start
For OpenAny access, use the request builder and OpenAny authentication instructions on this page. The curl below is a direct OSV contract reference, not an OpenAny gateway URL. Source-direct OSV access uses no API key or Authorization header.
curl 'https://api.osv.dev/v1/vulns/OSV-2020-111'Complete paired live response
This complete response was recorded directly from OSV on 2026-11-19 using the request above. The response is a historical capture; current records and result counts may differ. Additional live and official documentation examples are retained in the Examples section.
{
"id": "OSV-2020-111",
"summary": "Heap-use-after-free in int std::__1::__cxx_atomic_fetch_sub<int>",
"details": "OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21604
```
Crash type: Heap-use-after-free WRITE 4
Crash state:
int std::__1::__cxx_atomic_fetch_sub<int>
std::__1::__atomic_base<int, true>::operator--
Object::free
```
",
"modified": "2022-04-13T03:04:37.331327Z",
"published": "2020-06-24T01:51:14.570467Z",
"references": [
{
"type": "REPORT",
"url": "https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21604"
}
],
"affected": [
{
"package": {
"name": "poppler",
"ecosystem": "OSS-Fuzz",
"purl": "pkg:generic/poppler"
},
"ranges": [
{
"type": "GIT",
"repo": "https://anongit.freedesktop.org/git/poppler/poppler.git",
"events": [
{
"introduced": "e4badf4d745b8e8f9a0a25b6c3cc97fbadbbb499"
},
{
"fixed": "155f73bdd261622323491df4aebb840cde8bfee1"
}
]
}
],
"ecosystem_specific": {
"severity": "HIGH"
},
"database_specific": {
"source": "https://github.com/google/oss-fuzz-vulns/blob/main/vulns/poppler/OSV-2020-111.yaml"
}
}
],
"schema_version": "1.7.3"
}Price and usage
The configured OpenAny price is USD 0.005 per successful HTTP 200 request. The amount is fixed per request, including an empty result, and does not decrease with fewer returned records. Each continuation request and each separate advisory-detail lookup is another request at the same price. A batch is charged once per successful HTTP request, not once per package. HTTP success does not imply that all pages have been retrieved.
Coverage and limits
Requests are synchronous. This configuration accepts at most 1 MiB per request, permits responses up to 8 MiB, and uses a 120-second timeout. Oversized responses are unsupported; the service does not silently truncate them into a complete result. Preserve continuation tokens and missing or optional fields. The API searches indexed known vulnerabilities and does not replace source scanning or guarantee absence of security issues.
Data is aggregated from multiple databases with different licenses. Preserve source references and attribution, and check the applicable source terms before downstream redistribution. This API does not apply a license-based data filter.
Documentation
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
affectedobject[]database_specificobjectsourcestring
ecosystem_specificobjectseveritystring
packageobjectecosystemstringnamestringpurlstring
rangesobject[]eventsobject[]introducedstringfixedstring
repostringtypestring
versionsstring[]
detailsstringidstringmodifiedstringpublishedstringreferencesobject[]typestringurlstring
schema_versionstringsummarystringaliasesstring[]database_specificobjectcwe_idsstring[]github_reviewedbooleangithub_reviewed_atstringnvd_published_atstringseveritystring
severityobject[]scorestringtypestring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
affected?: Array<{
database_specific?: {
source?: string;
};
ecosystem_specific?: {
severity?: string;
};
package?: {
ecosystem?: string;
name?: string;
purl?: string;
};
ranges?: Array<{
events?: Array<{
introduced?: string;
fixed?: string;
}>;
repo?: string;
type?: string;
}>;
versions?: Array<string>;
}>;
details?: string;
id?: string;
modified?: string;
published?: string;
references?: Array<{
type?: string;
url?: string;
}>;
schema_version?: string;
summary?: string;
aliases?: Array<string>;
database_specific?: {
cwe_ids?: Array<string>;
github_reviewed?: boolean;
github_reviewed_at?: string;
nvd_published_at?: string;
severity?: string;
};
severity?: Array<{
score?: string;
type?: string;
}>;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
osvCurrent OSV Vulnerability Details API · GET · View API reference | $0.005 / call | — | —successP50— |
- Unit price
- $0.005
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 1. Price update time: not supplied.
Total $0.5
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/osv/v1/vulns/{id}- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/osv/v1/vulns/OSV-2020-111' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
id | URL path parameterspath | string | Yes | Exact case-sensitive identifier of an indexed vulnerability record, e.g. OSV-2020-111. An alias does not guarantee a standalone record. |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"affected": [
{
"database_specific": {
"source": "https://github.com/google/oss-fuzz-vulns/blob/main/vulns/poppler/OSV-2020-111.yaml"
},
"ecosystem_specific": {
"severity": "HIGH"
},
"package": {
"ecosystem": "OSS-Fuzz",
"name": "poppler",
"purl": "pkg:generic/poppler"
},
"ranges": [
{
"events": [
{
"introduced": "e4badf4d745b8e8f9a0a25b6c3cc97fbadbbb499"
},
{
"fixed": "155f73bdd261622323491df4aebb840cde8bfee1"
}
],
"repo": "https://anongit.freedesktop.org/git/poppler/poppler.git",
"type": "GIT"
}
]
}
],
"details": "OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21604\n\n```\nCrash type: Heap-use-after-free WRITE 4\nCrash state:\nint std::__1::__cxx_atomic_fetch_sub<int>\nstd::__1::__atomic_base<int, true>::operator--\nObject::free\n```\n",
"id": "OSV-2020-111",
"modified": "2022-04-13T03:04:37.331327Z",
"published": "2020-06-24T01:51:14.570467Z",
"references": [
{
"type": "REPORT",
"url": "https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21604"
}
],
"schema_version": "1.7.3",
"summary": "Heap-use-after-free in int std::__1::__cxx_atomic_fetch_sub<int>"
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# OSV Vulnerability Details API
Use the OSV Vulnerability Details API to retrieve a known vulnerability record by its database identifier. Provide the exact OSV, GHSA, CVE, or other supported record ID and receive the available advisory text, affected packages and ranges, publication and modification dates, severity information, and reference links. Use the record to investigate a batch-query match, document remediation evidence, or refresh a vulnerability knowledge base. Alias identifiers are included when supplied by the source, and withdrawn records must be interpreted using their withdrawal timestamp. The detail page includes complete request and response examples, the identifier parameter, and per-request pricing.
## Available implementations
osv · OSV Vulnerability Details API: https://openany.si/markets/apis/capabilities/osv-vulnerability-details-api?offering=51b5203c-b8fa-4043-a297-95d1a1f536d4 · $0.005 / call
## Selected API contract
Documentation: https://openany.si/apis/51b5203c-b8fa-4043-a297-95d1a1f536d4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/osv/v1/vulns/{id}
Price: $0.005 / call
Provider: osv
Contract revision: 1
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/osv/v1/vulns/OSV-2020-111' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'
```
## API contract
```json
{
"resource_type": "api",
"name": "OSV Vulnerability Details API",
"endpoint": "https://api.openany.si/v1/agent-apis/osv/v1/vulns/{id}",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Exact case-sensitive identifier of an indexed vulnerability record, e.g. OSV-2020-111. An alias does not guarantee a standalone record.",
"location": "path",
"name": "id",
"nullable": false,
"required": true,
"type": "string"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "5000",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Official example · Live OSV paired capture - 2026-11-19",
"request": {
"body": null,
"headers": {},
"path": {
"id": "OSV-2020-111"
},
"query": {}
},
"response_body": {
"affected": [
{
"database_specific": {
"source": "https://github.com/google/oss-fuzz-vulns/blob/main/vulns/poppler/OSV-2020-111.yaml"
},
"ecosystem_specific": {
"severity": "HIGH"
},
"package": {
"ecosystem": "OSS-Fuzz",
"name": "poppler",
"purl": "pkg:generic/poppler"
},
"ranges": [
{
"events": [
{
"introduced": "e4badf4d745b8e8f9a0a25b6c3cc97fbadbbb499"
},
{
"fixed": "155f73bdd261622323491df4aebb840cde8bfee1"
}
],
"repo": "https://anongit.freedesktop.org/git/poppler/poppler.git",
"type": "GIT"
}
]
}
],
"details": "OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21604\n\n```\nCrash type: Heap-use-after-free WRITE 4\nCrash state:\nint std::__1::__cxx_atomic_fetch_sub<int>\nstd::__1::__atomic_base<int, true>::operator--\nObject::free\n```\n",
"id": "OSV-2020-111",
"modified": "2022-04-13T03:04:37.331327Z",
"published": "2020-06-24T01:51:14.570467Z",
"references": [
{
"type": "REPORT",
"url": "https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21604"
}
],
"schema_version": "1.7.3",
"summary": "Heap-use-after-free in int std::__1::__cxx_atomic_fetch_sub<int>"
}
},
{
"http_status": 200,
"name": "Official example · Live details for an actual batch match",
"request": {
"body": null,
"headers": {},
"path": {
"id": "GHSA-3v79-q7ph-j75h"
},
"query": {}
},
"response_body": {
"affected": [
{
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/02/GHSA-3v79-q7ph-j75h/GHSA-3v79-q7ph-j75h.json"
},
"package": {
"ecosystem": "PyPI",
"name": "mlflow",
"purl": "pkg:pypi/mlflow"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.10.0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.0.1",
"0.1.0",
"0.2.0",
"0.2.1",
"0.3.0",
"0.4.0",
"0.4.1",
"0.4.2",
"0.5.0",
"0.5.1",
"0.5.2",
"0.6.0",
"0.7.0",
"0.8.0",
"0.8.1",
"0.8.2",
"0.9.0",
"0.9.0.1",
"0.9.1",
"1.0.0",
"1.1.0",
"1.1.1.dev0",
"1.10.0",
"1.11.0",
"1.12.0",
"1.12.1",
"1.13",
"1.13.1",
"1.14.0",
"1.14.1",
"1.15.0",
"1.16.0",
"1.17.0",
"1.18.0",
"1.19.0",
"1.2.0",
"1.20.0",
"1.20.1",
"1.20.2",
"1.21.0",
"1.22.0",
"1.23.0",
"1.23.1",
"1.24.0",
"1.25.0",
"1.25.1",
"1.26.0",
"1.26.1",
"1.27.0",
"1.28.0",
"1.29.0",
"1.3.0",
"1.30.0",
"1.30.1",
"1.4.0",
"1.5.0",
"1.6.0",
"1.7.0",
"1.7.1",
"1.7.2",
"1.8.0",
"1.9.0",
"1.9.1",
"2.0.0",
"2.0.0rc0",
"2.0.1",
"2.1.0",
"2.1.1",
"2.2.0",
"2.2.1",
"2.2.2",
"2.3.0",
"2.3.1",
"2.3.2",
"2.4.0",
"2.4.1",
"2.4.2",
"2.5.0",
"2.6.0",
"2.7.0",
"2.7.1",
"2.8.0",
"2.8.1",
"2.9.0",
"2.9.1",
"2.9.2"
]
}
],
"aliases": [
"BIT-mlflow-2024-27133",
"CVE-2024-27133",
"PYSEC-2024-241"
],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"github_reviewed": true,
"github_reviewed_at": "2024-02-27T21:57:34Z",
"nvd_published_at": "2024-02-23T22:15:55Z",
"severity": "CRITICAL"
},
"details": "Insufficient sanitization in MLflow leads to XSS when running a recipe that uses an untrusted dataset. This issue leads to a client-side RCE when running the recipe in Jupyter Notebook. The vulnerability stems from lack of sanitization over dataset table fields.",
"id": "GHSA-3v79-q7ph-j75h",
"modified": "2025-04-08T22:30:59.347458Z",
"published": "2024-02-24T00:30:20Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-27133"
},
{
"type": "WEB",
"url": "https://github.com/mlflow/mlflow/pull/10893"
},
{
"type": "WEB",
"url": "https://github.com/mlflow/mlflow/commit/c43823750bffa5b6abcc086683b15a068513b67b"
},
{
"type": "WEB",
"url": "https://github.com/mlflow/mlflow/commit/cfa71879a884cc3520e23ccab998c9aa78fdf2b1"
},
{
"type": "PACKAGE",
"url": "https://github.com/mlflow/mlflow"
},
{
"type": "WEB",
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/mlflow/PYSEC-2024-241.yaml"
},
{
"type": "WEB",
"url": "https://research.jfrog.com/vulnerabilities/mlflow-untrusted-dataset-xss-jfsa-2024-000631932"
}
],
"schema_version": "1.9.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "MLFlow Cross-site Scripting vulnerability leads to client-side Remote Code Execution"
}
},
{
"http_status": 200,
"name": "Official example · Historical official documentation response",
"request": {
"body": null,
"headers": {},
"path": {
"id": "OSV-2020-111"
},
"query": {}
},
"response_body": {
"affected": [
{
"database_specific": {
"source": "https://github.com/google/oss-fuzz-vulns/blob/main/vulns/poppler/OSV-2020-111.yaml"
},
"ecosystem_specific": {
"severity": "HIGH"
},
"package": {
"ecosystem": "OSS-Fuzz",
"name": "poppler",
"purl": "pkg:generic/poppler"
},
"ranges": [
{
"events": [
{
"introduced": "e4badf4d745b8e8f9a0a25b6c3cc97fbadbbb499"
},
{
"fixed": "155f73bdd261622323491df4aebb840cde8bfee1"
}
],
"repo": "https://anongit.freedesktop.org/git/poppler/poppler.git",
"type": "GIT"
}
]
}
],
"details": "OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21604\n\n```\nCrash type: Heap-use-after-free WRITE 4\nCrash state:\nint std::__1::__cxx_atomic_fetch_sub<int>\nstd::__1::__atomic_base<int, true>::operator--\nObject::free\n```\n",
"id": "OSV-2020-111",
"modified": "2022-04-13T03:04:37.331327Z",
"published": "2020-06-24T01:51:14.570467Z",
"references": [
{
"type": "REPORT",
"url": "https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21604"
}
],
"schema_version": "1.4.0",
"summary": "Heap-use-after-free in int std::__1::__cxx_atomic_fetch_sub<int>"
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example · Live OSV paired capture - 2026-11-19
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 1
Review these request fields before running. Keep the published provider and request method unchanged.
id- Exact case-sensitive identifier of an indexed vulnerability record, e.g. OSV-2020-111. An alias does not guarantee a standalone record.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/osv/v1/vulns/OSV-2020-111' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "affected": [ { "database_specific": { "source": "https://github.com/google/oss-fuzz-vulns/blob/main/vulns/poppler/OSV-2020-111.yaml" }, "ecosystem_specific": { "severity": "HIGH" }, "package": { "ecosystem": "OSS-Fuzz", "name": "poppler", "purl": "pkg:generic/poppler" }, "ranges": [ { "events": [ { "introduced": "e4badf4d745b8e8f9a0a25b6c3cc97fbadbbb499" }, { "fixed": "155f73bdd261622323491df4aebb840cde8bfee1" } ], "repo": "https://anongit.freedesktop.org/git/poppler/poppler.git", "type": "GIT" } ] } ], "details": "OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21604\n\n```\nCrash type: Heap-use-after-free WRITE 4\nCrash state:\nint std::__1::__cxx_atomic_fetch_sub<int>\nstd::__1::__atomic_base<int, true>::operator--\nObject::free\n```\n", "id": "OSV-2020-111", "modified": "2022-04-13T03:04:37.331327Z", "published": "2020-06-24T01:51:14.570467Z", "references": [ { "type": "REPORT", "url": "https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21604" } ], "schema_version": "1.7.3", "summary": "Heap-use-after-free in int std::__1::__cxx_atomic_fetch_sub<int>" }