# OSV Vulnerability Details API

Retrieve OSV vulnerability details by exact ID via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Osv, configure supported query parameters and filters, and retrieve structured data including indexed vulnerability identifier, short advisory summary, detailed advisory text, affected package name, and events for advisory detail panels, and patch review.

Documentation: https://openany.si/osv/osv-vulnerability-details-api/51b5203c-b8fa-4043-a297-95d1a1f536d4/
API ID: 51b5203c-b8fa-4043-a297-95d1a1f536d4
Provider: osv
Contract revision: 2
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/osv/v1/vulns/{id}
Page update time: 2026-12-03T02:49:10.495Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.005 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:09.795Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "5000",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## OSV Vulnerability Details API

Pass an exact, case-sensitive indexed vulnerability ID in the URL path. The returned record describes the advisory and affected package ranges, with publication and modification times; optional severity or alias information varies between records.

## What You Can Build

- **Advisory detail panels**: Show matched package ranges and reference links beside an advisory ID.
- **Patch review**: Inspect the reported boundary events when evaluating affected releases.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `id` | Indexed vulnerability identifier |
| `summary` | Short advisory summary |
| `details` | Detailed advisory text |
| `affected[].package.name` | Affected package name |
| `affected[].ranges[].events[]` | Introduced and fixed boundary events when supplied |
| `references[].url` | Advisory or report reference URL |
| `modified` | Record modification timestamp |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "OSV Vulnerability Details API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Exact case-sensitive identifier of an indexed vulnerability record, e.g. OSV-2020-111. An alias does not guarantee a standalone record."
        }
      },
      "required": [
        "id"
      ]
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "affected": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "database_specific": {
            "type": "object",
            "properties": {
              "source": {
                "type": "string"
              }
            }
          },
          "ecosystem_specific": {
            "type": "object",
            "properties": {
              "severity": {
                "type": "string"
              }
            }
          },
          "package": {
            "type": "object",
            "properties": {
              "ecosystem": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "purl": {
                "type": "string"
              }
            }
          },
          "ranges": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "events": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "introduced": {
                        "type": "string"
                      },
                      "fixed": {
                        "type": "string"
                      }
                    }
                  }
                },
                "repo": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                }
              }
            }
          },
          "versions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "details": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "modified": {
      "type": "string"
    },
    "published": {
      "type": "string"
    },
    "references": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "schema_version": {
      "type": "string"
    },
    "summary": {
      "type": "string"
    },
    "aliases": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "database_specific": {
      "type": "object",
      "properties": {
        "cwe_ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "github_reviewed": {
          "type": "boolean"
        },
        "github_reviewed_at": {
          "type": "string"
        },
        "nvd_published_at": {
          "type": "string"
        },
        "severity": {
          "type": "string"
        }
      }
    },
    "severity": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "score": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example · Live OSV paired capture - 2026-11-19
```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'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
````json
{
  "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>"
}
````

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Can I use any CVE or GHSA alias as the ID?
An alias does not guarantee a standalone indexed record. Use an exact ID returned by an OSV query, including its original case.

### Are introduced and fixed values always version numbers?
No. Interpret events with their range type; GIT ranges can contain commit hashes rather than release versions.

### Does every record include the same severity fields?
No. Preserve optional or absent severity information and inspect the affected package and ecosystem-specific data returned for the record.

### What does modified mean?
It is the database record’s modification timestamp. It is separate from published and does not by itself state when a package became vulnerable.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- osv: https://openany.si/osv/osv-vulnerability-details-api/51b5203c-b8fa-4043-a297-95d1a1f536d4/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
