Skip to main content
POST
Advisory

Request contract

  • Method and path: POST /apis/v1/github/repositories/advisory
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/github/repositories/advisory
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
cve_id
string
required

CVE id, for example CVE-2021-44228. Pattern: ^[Cc][Vv][Ee]-\d{4}-\d{4,19}$.

ghsa_id
string

GHSA id, for example GHSA-jfh8-c2jp-5v3q. Pattern: ^[Gg][Hh][Ss]Aa [blocked]{3}$.

url
string

https://github.com/advisories/GHSA-..., the api.github.com/advisories URL, or a repository security advisory URL (looked up in the global database by its GHSA id). Pattern: ^(?:https?://)?(?:www.|api.)?github.com/(?:advisories|[A-Za-z0-9-]{1,39}/[A-Za-z0-9._-]{1,100}/security/advisories)/[Gg][Hh][Ss [blocked]]Aa [blocked]{3}/?(?:[?#].*)?$.

Response

One GitHub Advisory Database record by GHSA id, CVE id or github.com/advisories URL: type (reviewed, unreviewed or malware), severity, CVSS v3 and v4, the EPSS exploit probability and percentile, CWE ids with names, every affected package with its vulnerable range, first patched version and vulnerable functions, credits (finder, reporter, remediation developer ...), references, the markdown description, and the GitHub review, NVD publication and withdrawal dates. Adds over osv-dev vuln and nvd-nist-gov cve: EPSS, CWE names, credit roles, the advisory type and vulnerable functions in one record. A CVE shared by several GHSA records returns the reviewed one and lists the rest. An unknown id is not_found. CC BY 4.0, attribute GitHub.

The response contains the tool result directly.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.