OSV

Query the OSV open source vulnerability database by exact package version and read advisory records.

2 implemented operations

connector.yaml
vulnerabilities.readRead complete advisory records by OSV id.vulnerabilities.read
osv vulnerabilities.readread#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
Runx scope
vulnerabilities.read
Target
https://api.osv.dev/v1/vulns
Local implementation
Declared HTTP requests: api.osv.dev
Inputs
Field and constraintsType / valuesRequired
idsAt most 50 itemsUnique itemsarray of stringYes
ids[]Pattern: ^[A-Za-z0-9][A-Za-z0-9._:-]{0,99}$string

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "ids"
  ],
  "properties": {
    "ids": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,99}$"
      },
      "maxItems": 50,
      "uniqueItems": true
    }
  },
  "additionalProperties": false
}

Result fields advisories

Operation digest sha256:7aa6fe27b2f7f6c9c11c8fa416a1c28476b20868f48ef0609bd310f9d3b404d6Implementation sha256:130bdcf6d159f454436de530f8d09390c6e8de15eed390d1cf2686c46742bc59

vulnerabilities.queryQuery vulnerabilities for exact package versions, one OSV query batch per request.vulnerabilities.read
osv vulnerabilities.queryread#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
Runx scope
vulnerabilities.read
Target
https://api.osv.dev/v1/querybatch
Local implementation
Declared HTTP requests: api.osv.dev
Inputs
Field and constraintsType / valuesRequired
batches1–20 itemsarray of objectYes
batches[]Only listed fields acceptedobject
batches[].queries1–500 itemsarray of objectYes
batches[].queries[]Only listed fields acceptedobject
batches[].queries[].packageOnly listed fields acceptedobjectYes
batches[].queries[].package.nameMin. 1 characterMax. 300 charactersstringYes
batches[].queries[].package.ecosystemMin. 1 characterMax. 50 charactersstringYes
batches[].queries[].versionMin. 1 characterMax. 100 charactersstringYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "batches"
  ],
  "properties": {
    "batches": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "queries"
        ],
        "properties": {
          "queries": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "package",
                "version"
              ],
              "properties": {
                "package": {
                  "type": "object",
                  "required": [
                    "ecosystem",
                    "name"
                  ],
                  "properties": {
                    "name": {
                      "type": "string",
                      "maxLength": 300,
                      "minLength": 1
                    },
                    "ecosystem": {
                      "type": "string",
                      "maxLength": 50,
                      "minLength": 1
                    }
                  },
                  "additionalProperties": false
                },
                "version": {
                  "type": "string",
                  "maxLength": 100,
                  "minLength": 1
                }
              },
              "additionalProperties": false
            },
            "maxItems": 500,
            "minItems": 1
          }
        },
        "additionalProperties": false
      },
      "maxItems": 20,
      "minItems": 1
    }
  },
  "additionalProperties": false
}

Result fields batches

Operation digest sha256:f1e150205434649a0b38c55a758787dabb043a1ccad62d12737311aa6a5d7cb5Implementation sha256:fd5aff1b308c98a5d5da561bcc3892b10499d1c2a4c43262042b7aa83f020bb2

Authentication

Commands here are for runx 0.11.1.

OSV accepts no account at all.

No provider credential
No provider account or key is required. Runx still applies each operation’s declared scope and approval rules.

Authentication methods describe what the provider requires. They do not imply Runx supports every way the provider authenticates, and they do not grant access to your account.

Permissions

Each operation requires every Runx scope it declares. The account or key behind an instance must also reach the target on OSV’s side; setting one up adds no OSV permissions.

Skills that use OSV