# Package Risk Advisories

> Package Risk Advisories is a paid API for AI agents from x402-package-risk.x402-package-risk.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-12).

Returns known security advisories for a given package, resolved against the version an installer would actually get today, using deterministic (non-AI) data.

## Facts

- Endpoint: POST https://x402-package-risk.x402-package-risk.workers.dev/v1/package/advisories?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/package-risk-advisories-d4b87c0c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IzeMXx2wazoE3iXoy4RPz

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-risk-advisories-d4b87c0c -d '<json body>'
```

Example prompt: Can you check whether the npm package 'request' has any known security advisories right now, using the current version that would be installed today?

## When to prefer this

Choose this endpoint when you need deterministic, up-to-date security advisory data for a specific package without relying on LLM-generated or cached results. It is ideal for CI/CD pipelines, pre-install checks, or agent workflows that require auditable, non-hallucinated vulnerability data. Prefer it over general web search or LLM knowledge for supply-chain security decisions, since it resolves against the version that would actually be installed today.

## Known failure modes

- Unknown package name returns zero advisories or a 404-style error
- Unsupported ecosystem/system value results in a validation error
- Network or upstream advisory database unavailability may cause a 5xx response
- Malformed request body (missing required 'name' or 'system' fields) returns a 400 error
- Payment failure (x402 flow not completed) blocks the request before processing

## How this service works

Deterministic dependency risk data for agents: maintenance, licence, and known advisories for one package, resolved against the version an installer would actually get today. No model calls, no personal data.

## Output

A JSON object with a count of advisories found, the resolved package name and ecosystem, and an array of advisory objects each containing a GHSA identifier and a plain-English summary of the vulnerability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "name",
  "system"
 ],
 "properties": {
  "name": {
   "type": "string"
  },
  "system": {
   "enum": [
    "npm",
    "pypi",
    "go",
    "maven",
    "cargo",
    "nuget"
   ],
   "type": "string"
  },
  "version": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "count": 1,
 "package": {
  "name": "request",
  "system": "npm"
 },
 "advisories": [
  {
   "id": "GHSA-p8p7-x288-28g6",
   "summary": "Server-Side Request Forgery"
  }
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/package-risk-advisories-d4b87c0c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-package-risk.x402-package-risk.workers.dev](https://www.zero.xyz/host/x402-package-risk.x402-package-risk.workers.dev/llms.txt)
