# Package Vulnerabilities (OSV)

> Package Vulnerabilities (OSV) is a paid API for AI agents from bess-x402.onrender.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-28).

Returns known security vulnerabilities for an open-source package from OSV, including CVE aliases, severity, and fixed versions, optionally filtered to a specific version.

## Facts

- Endpoint: GET https://bess-x402.onrender.com/v1/dev/vulns?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/package-vulnerabilities-osv-a9748c46
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kOrvKPrPXAbZdBcgT8WcO

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability package-vulnerabilities-osv-a9748c46
```

Example prompt: Before I upgrade, can you check if the npm package 'lodash' has any known security vulnerabilities — especially for version 4.17.20?

## When to prefer this

Use this endpoint when you need structured, up-to-date vulnerability data from OSV (covering GitHub advisories, PyPA, RustSec, and Go) for packages across npm, PyPI, Go, Maven, crates.io, RubyGems, NuGet, and Packagist — especially before installing or upgrading a dependency. Prefer it over generic web searches for security data because it returns machine-readable CVE IDs, severity, affected ranges, and fixed versions in a structured format directly from authoritative advisory databases.

## Known failure modes

- Package not found in the specified ecosystem — returns empty results or 404
- Ecosystem parameter invalid or unsupported — may return an error or empty result
- Version string format mismatch — version not recognized, no results returned
- OSV upstream data unavailable — service timeout or 503
- Rate limiting or payment failure — 402 or 429 response

## How this service works

Known security vulnerabilities for an open-source package from OSV (GitHub advisories, PyPA, RustSec, Go): id, CVE aliases, summary, severity, fixed versions, for all versions or one version. Ecosystems: npm, PyPI, Go, Maven, crates.io, RubyGems, NuGet, Packagist. Use before installing or upgrading.

## Output

A list of vulnerability records from OSV, each containing: vulnerability ID, CVE aliases, a plain-English summary, severity rating, affected version ranges, and the versions in which the vulnerability was fixed. If a specific version is provided, results are filtered to vulnerabilities affecting that version only.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "package"
     ],
     "properties": {
      "package": {
       "type": "string",
       "description": "Package name"
      },
      "version": {
       "type": "string",
       "description": "Exact version to check (optional)"
      },
      "ecosystem": {
       "type": "string",
       "description": "npm, pypi, go, maven, cargo, rubygems, nuget, packagist"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/package-vulnerabilities-osv-a9748c46/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bess-x402.onrender.com](https://www.zero.xyz/host/bess-x402.onrender.com/llms.txt)
