# Real-Time Open-Source Package CVE & GHSA Vulnerability Scanner (OSV.dev)

> Real-Time Open-Source Package CVE & GHSA Vulnerability Scanner (OSV.dev) is a paid API for AI agents from github-audit.agentdiet.dev, paid per call via MPP, $0.01/call, status unknown (last checked 2026-11-21).

Queries Google OSV.dev in real time to return active CVEs, GHSA advisories, and patched versions for PyPI, npm, Go, or Rust crate packages.

## Facts

- Endpoint: POST https://github-audit.agentdiet.dev/v1/maven-vuln-scanner?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Provider: github-audit.agentdiet.dev
- Website: https://github-audit.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/github-audit-agentdiet-dev-real-time-open-source-package-cve-ghsa-77b08d5b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hjKvhFHABaxHxpscTWynr

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 github-audit-agentdiet-dev-real-time-open-source-package-cve-ghsa-77b08d5b -d '<json body>'
```

Example prompt: Check the OSV.dev vulnerability database for the PyPI package 'requests' and tell me if there are any active CVEs or GHSA advisories, and what patched version I should upgrade to.

## When to prefer this

Choose this endpoint when you need real-time, live vulnerability data sourced directly from Google OSV.dev for PyPI, npm, Go, or Rust crate packages. It is ideal for automated dependency auditing, CI/CD security gates, or agent workflows that need up-to-date CVE and GHSA advisory data without maintaining a local vulnerability database. Prefer it over static advisory databases when freshness matters or when you need patched version recommendations alongside advisory metadata.

## Known failure modes

- Package not found in OSV.dev database — returns empty or 404-style response
- Invalid ecosystem prefix causes validation error — e.g. unsupported ecosystem like Maven
- OSV.dev upstream timeout or unavailability causes delayed or error response
- Malformed package identifier (missing colon separator) triggers input validation failure
- Payment not processed correctly via x402, resulting in 402 response and no data returned

## How this service works

Queries live Google OSV.dev vulnerability intelligence for any PyPI, npm, Go, or Rust crate and returns active CVEs, GHSA advisories, and patched versions. (Live x402 v2, IETF MPP & MCP endpoint at https://github-audit.agentdiet.dev/v1/maven-vuln-scanner)

## Output

Returns a structured object listing all active CVEs and GHSA advisories associated with the queried package, including advisory IDs, severity ratings, affected version ranges, and the recommended patched versions from the Google OSV.dev database.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "package"
 ],
 "properties": {
  "package": {
   "type": "string",
   "minLength": 1,
   "description": "Package identifier in 'Ecosystem:name' or 'name' format (e.g. 'PyPI:requests', 'npm:lodash', 'Go:golang.org/x/net', 'crates.io:hyper')"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/github-audit-agentdiet-dev-real-time-open-source-package-cve-ghsa-77b08d5b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from github-audit.agentdiet.dev](https://www.zero.xyz/host/github-audit.agentdiet.dev/llms.txt)
