# 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 shopify-spy.agentdiet.dev, paid per call via MPP, $0.01/call, status unknown.

Queries Google OSV.dev to return active CVEs, GHSA advisories, and patched versions for a given PyPI, npm, Go, or Rust package.

## Facts

- Endpoint: GET https://shopify-spy.agentdiet.dev/v1/npm-vuln-scan?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Activations on Zero: 0
- Provider: shopify-spy.agentdiet.dev
- Website: https://shopify-spy.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/shopify-spy-agentdiet-dev-real-time-open-source-package-cve-ghsa-e3f5d47b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VH9MehI7CxFHiDoBCh2WT

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 shopify-spy-agentdiet-dev-real-time-open-source-package-cve-ghsa-e3f5d47b
```

Example prompt: Can you check the npm package 'lodash' against OSV.dev and tell me if it has any active CVEs or GHSA advisories, and what versions have patches?

## When to prefer this

Choose this endpoint when you need real-time, live vulnerability data from Google OSV.dev for PyPI, npm, Go, or crates.io packages, especially when you need CVE IDs, GHSA advisory details, and patched version recommendations in a single call. Prefer it over static NVD lookups or local databases when freshness is critical. It covers four major ecosystems (Python, JavaScript, Go, Rust) in a unified interface.

## Known failure modes

- Package not found in OSV.dev — returns empty advisory list or 404-style error
- Invalid package identifier format (missing ecosystem prefix) — returns validation error
- OSV.dev upstream unavailable — returns gateway timeout or upstream error
- Package name typo or incorrect ecosystem prefix — returns no results or mismatched data
- Rate limit or payment failure ($0.01/call) — returns 402 Payment Required

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

## Output

Returns a structured object containing a list of active CVEs and GHSA advisories for the queried package, including vulnerability IDs, severity ratings, affected version ranges, and the patched versions that resolve each issue.

## 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/shopify-spy-agentdiet-dev-real-time-open-source-package-cve-ghsa-e3f5d47b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from shopify-spy.agentdiet.dev](https://www.zero.xyz/host/shopify-spy.agentdiet.dev/llms.txt)
