# NPM GHSA Advisory Brief – LLM Digest

> NPM GHSA Advisory Brief – LLM Digest 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-14).

Returns an LLM-written narrative digest summarizing the most severe new npm package security advisories (GitHub Security Advisories) within a configurable time window

## Facts

- Endpoint: GET https://oracles-production.up.railway.app/v1/ghsa-npm/brief
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/npm-ghsa-advisory-brief-llm-digest-5568afd8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_23IcpJ2kpOoRm--hxJa89

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 npm-ghsa-advisory-brief-llm-digest-5568afd8
```

Example prompt: Give me an AI-written digest of the most severe npm security advisories from the last 30 days so I can quickly understand what packages my team needs to patch.

## When to prefer this

Choose this endpoint when you need a quick, readable narrative summary of npm security threats rather than raw advisory data. Ideal for security briefings, weekly digests, developer newsletters, or automated Slack/email reports. Prefer over raw GHSA feeds when the consumer is a human or an agent that needs to reason about severity and urgency in plain language. Use the 'since' parameter to narrow to a sprint, release window, or audit period.

## Known failure modes

- No new advisories in the window — may return a brief stating nothing notable was found
- Invalid 'since' date-time format returns a 400 validation error
- LLM generation failure falls back to template-based output (generatedBy: 'template')
- Payment not included or insufficient — returns 402 Payment Required
- Upstream GHSA feed unavailable — may cause 5xx error or stale data

## How this service works

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

## Output

Returns a JSON object containing: a 'brief' field with a human-readable LLM-written narrative summarizing the most severe npm advisories in the window, a 'generatedBy' field indicating whether the digest was produced by an LLM or a fallback template, and a 'basedOnChanges' integer showing how many advisories were analyzed to produce the brief.

## 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/npm-ghsa-advisory-brief-llm-digest-5568afd8/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)
