# agentdiet-vuln-scanner: OSV.dev CVE & GHSA Package Vulnerability Scanner

> agentdiet-vuln-scanner: OSV.dev CVE & GHSA Package Vulnerability Scanner is a paid API for AI agents from agentdiet.dev, paid per call via x402 or MPP, $0.01/call, status unknown (last checked 2026-10-20).

Queries Google OSV.dev in real-time to return active CVEs, GHSA advisories, and patched versions for a given open-source package (PyPI, npm, Go, or Rust crate).

## Facts

- Endpoint: GET https://agentdiet.dev/v1/vuln-scanner?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402, MPP
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-vuln-scanner-osv-dev-cve-ghsa-package-vulnerability-scanner-95b284a9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jy-1u-zU8G-qkFhUXIJhH

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 agentdiet-vuln-scanner-osv-dev-cve-ghsa-package-vulnerability-scanner-95b284a9
```

Example prompt: Can you check if the Python package 'requests' has any active CVEs or GHSA advisories, and let me know which versions are patched?

## When to prefer this

Choose this endpoint when you need real-time, authoritative CVE and GHSA vulnerability data directly from Google OSV.dev for a specific open-source package across PyPI, npm, Go, or Rust ecosystems. Prefer it over static vulnerability databases when you need live advisory data including the latest patched versions. Especially useful for agent-driven dependency audits, CI/CD security checks, or supply chain risk assessment.

## Known failure modes

- Package not found in OSV.dev — returns empty advisory list or 404-equivalent
- Unsupported ecosystem specified — scanner only covers PyPI, npm, Go, and Rust
- OSV.dev upstream unavailable — may return timeout or 503 error
- Malformed package name — returns validation error
- Payment not completed — x402 gate blocks the request

## 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://agentdiet.dev/v1/vuln-scanner)

## Output

Returns a structured list of active vulnerability records for the queried package, including CVE IDs, GHSA advisory identifiers, affected version ranges, severity ratings, and recommended patched versions sourced live from Google OSV.dev.

## 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/agentdiet-vuln-scanner-osv-dev-cve-ghsa-package-vulnerability-scanner-95b284a9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentdiet.dev](https://www.zero.xyz/host/agentdiet.dev/llms.txt)
