# 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 token-intel.agentdiet.dev, paid per call via MPP, $0.01/call, status unknown (last checked 2026-12-01).

Queries Google OSV.dev for live CVE and GHSA vulnerability advisories for a given PyPI, npm, Go, or Rust crate package and returns active vulnerabilities and patched versions.

## Facts

- Endpoint: POST https://token-intel.agentdiet.dev/v1/npm-vuln-scan?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-12-01
- Activations on Zero: 0
- Provider: token-intel.agentdiet.dev
- Website: https://token-intel.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/token-intel-agentdiet-dev-real-time-open-source-package-cve-ghsa-44fb62be
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hG6kEXagg5XrJTc0JcAMt

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 token-intel-agentdiet-dev-real-time-open-source-package-cve-ghsa-44fb62be -d '<json body>'
```

Example prompt: Can you check OSV.dev for any active CVEs or GHSA advisories affecting npm:lodash and tell me if there are patched versions available?

## When to prefer this

Choose this endpoint when you need real-time, live vulnerability data from Google OSV.dev for a specific open-source package across PyPI, npm, Go, or Rust ecosystems — especially when you want CVE and GHSA advisory details with patched version guidance in a single call. Prefer it over static advisory databases when freshness matters, or when integrating dependency security checks into an AI agent workflow without standing up your own OSV.dev integration.

## Known failure modes

- Package not found in OSV.dev — returns empty vulnerability list or error indicating unknown package
- Invalid ecosystem prefix — error if ecosystem is not one of PyPI, npm, Go, or crates.io
- OSV.dev upstream timeout or unavailability — upstream dependency failure propagated as error
- Malformed package identifier — error if the package string fails validation (e.g. missing name after colon)
- Payment not settled — HTTP 402 returned if x402 payment header is absent or insufficient

## 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://token-intel.agentdiet.dev/v1/npm-vuln-scan)

## Output

Returns a structured object containing any active CVE identifiers, GHSA advisory references, severity ratings, affected version ranges, and recommended patched versions for the queried package ecosystem and name, 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/token-intel-agentdiet-dev-real-time-open-source-package-cve-ghsa-44fb62be/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from token-intel.agentdiet.dev](https://www.zero.xyz/host/token-intel.agentdiet.dev/llms.txt)
