# GitHub Security Advisories – Composer/PHP Changes Feed

> GitHub Security Advisories – Composer/PHP Changes Feed is a paid API for AI agents from oracles-production.up.railway.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Returns GitHub security advisories (GHSAs) for Composer/PHP packages published since a given timestamp, each scored by severity with affected package details and source links.

## Facts

- Endpoint: GET https://oracles-production.up.railway.app/v1/ghsa-composer/changes
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/github-security-advisories-composer-php-changes-feed-4323d5ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YG_uT3etcT71zIa6bMOUr

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 github-security-advisories-composer-php-changes-feed-4323d5ab
```

Example prompt: Show me any new GitHub security advisories for Composer PHP packages detected since 2025-01-01T00:00:00Z, and only include ones with a severity score of at least 7.

## When to prefer this

Use this endpoint when you need to monitor or audit PHP/Composer package dependencies for newly published security advisories, especially in automated pipelines that check for vulnerabilities since a known timestamp. Prefer it over generic vulnerability databases when you specifically need Composer ecosystem coverage scored by severity with direct GitHub advisory links.

## Known failure modes

- Invalid or missing 'since' date format returns a 400 validation error
- 'min_significance' or 'limit' out of allowed range returns a 400 error
- No advisories found in the window returns an empty changes array with count 0
- Upstream GitHub Advisory Database unavailable may return a 503 or empty results
- Payment not completed (x402) results in a 402 Payment Required response

## How this service works

New security vulnerabilities and CVEs affecting Composer/PHP packages published since a timestamp (GitHub's reviewed advisory database) — each with its CVE ID, CVSS/severity score, affected package names, and a link. Answers "did a dependency I use get a new CVE or vulnerability I should patch?"

## Output

A JSON object containing a count, source identifier, and an array of advisory change records — each with a GHSA entity ID, title, summary, severity significance score (1–10), detected timestamp, optional effective date, a detail object, and a primary-source URL for verification.

## 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": {
      "limit": {
       "type": "integer",
       "maximum": 500,
       "minimum": 1
      },
      "since": {
       "type": "string",
       "format": "date-time",
       "description": "Only changes detected after this ISO-8601 instant"
      },
      "min_significance": {
       "type": "integer",
       "maximum": 10,
       "minimum": 1,
       "description": "Keep only changes scored at least this"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "count": {
       "type": "integer"
      },
      "source": {
       "type": "string"
      },
      "changes": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "type": {
          "type": "string"
         },
         "title": {
          "type": "string"
         },
         "detail": {
          "type": "object"
         },
         "summary": {
          "type": "string"
         },
         "entityId": {
          "type": "string"
         },
         "sourceUrl": {
          "type": [
           "string",
           "null"
          ],
          "description": "Primary-source link for verification"
         },
         "detectedAt": {
          "type": "string",
          "format": "date-time"
         },
         "significance": {
          "type": "integer",
          "maximum": 10,
          "minimum": 1
         },
         "effectiveDate": {
          "type": [
           "string",
           "null"
          ]
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/github-security-advisories-composer-php-changes-feed-4323d5ab/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)
