# PyPI GHSA Security Advisory Brief

> PyPI GHSA Security Advisory Brief is a paid API for AI agents from oracles-production.up.railway.app, paid per call via x402, $0.25/call, status unknown (last checked 2026-09-15).

Returns an LLM-generated digest summarizing the most severe new PyPI (Python) security advisories from GitHub Security Advisory (GHSA) within a configurable time window.

## Facts

- Endpoint: GET https://oracles-production.up.railway.app/v1/ghsa-pip/brief
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pypi-ghsa-security-advisory-brief-818ea7ad
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ASftvO_BzWbVBcfmPrfzJ

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 pypi-ghsa-security-advisory-brief-818ea7ad
```

Example prompt: Can you give me an AI-written summary of the most severe new PyPI security advisories from the last 7 days — I want to know what Python packages have critical vulnerabilities I should worry about?

## When to prefer this

Use this endpoint when you want a human-readable, AI-synthesized narrative summary of PyPI/pip package security advisories rather than raw structured data. Ideal for security digests, automated vulnerability newsletters, developer security briefings, or when a non-expert needs a plain-English explanation of the threat landscape for Python dependencies. Prefer over raw GHSA feeds when synthesis and prioritization matter more than completeness.

## Known failure modes

- No new advisories in window — may return a brief indicating no significant findings
- Invalid 'since' datetime format returns 400 error
- Payment not processed (x402) — 402 Payment Required response
- Upstream GHSA data unavailable — may return 503 or empty result
- LLM generation failure — may fall back to template-generated brief

## How this service works

LLM-written digest of the most severe new PyPI vulnerabilities (CVEs / advisories) in the window and which packages to patch first.

## Output

Returns a JSON object containing: a 'brief' field with an LLM-written plain-English digest of the most serious PyPI GHSA advisories in the window; 'generatedBy' indicating whether an LLM or template produced it; and 'basedOnChanges' with the count of advisories that were analyzed to produce the digest.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "since": {
       "type": "string",
       "format": "date-time",
       "description": "Window start (default: last 30 days)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "brief": {
       "type": "string"
      },
      "generatedBy": {
       "enum": [
        "llm",
        "template"
       ],
       "type": "string"
      },
      "basedOnChanges": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pypi-ghsa-security-advisory-brief-818ea7ad/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from oracles-production.up.railway.app](https://www.zero.xyz/host/oracles-production.up.railway.app/llms.txt)
