# GHSA RubyGems Advisory Detail Lookup

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

Returns stored detail for a single GitHub Security Advisory (GHSA) affecting RubyGems, identified by an entityId like 'ghsa:GHSA-xxxx'.

## Facts

- Endpoint: GET https://oracles-production.up.railway.app/v1/ghsa-rubygems/status
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ghsa-rubygems-advisory-detail-lookup-950c2d15
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__OZHiy2oX5PLAxw7WlHzi

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 ghsa-rubygems-advisory-detail-lookup-950c2d15
```

Example prompt: Pull up the full advisory details for GHSA-2345-6789 in RubyGems — I want to know the severity, affected versions, and whether a patch is available.

## When to prefer this

Use this endpoint when you have a specific GHSA advisory ID for a RubyGems package and need its full stored detail record — severity, affected versions, patch info. Prefer this over general web search when you need structured, machine-readable advisory data. Use it in dependency-scanning workflows to enrich findings with advisory metadata.

## Known failure modes

- Missing or invalid 'id' query parameter returns an empty or error response
- Advisory ID not found in stored data returns null or empty entity
- Malformed entityId format (not 'ghsa:GHSA-xxxx') may return no results
- Payment not completed results in HTTP 402 Payment Required
- Rate limiting or server errors return 5xx responses

## How this service works

Full detail for a single vulnerability advisory by CVE / GHSA ID (e.g. 'ghsa:GHSA-xxxx') — severity, CVSS score, affected RubyGems/Ruby package(s), and source link.

## Output

Returns a structured entity object containing the advisory's details, including GHSA ID, affected RubyGems package(s), severity level, patched/unaffected versions, CVE reference, description, and any other stored metadata for that advisory.

## 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": {
      "id": {
       "type": "string",
       "description": "entityId to look up; omit to list tracked entities"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "entity": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ghsa-rubygems-advisory-detail-lookup-950c2d15/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)
