跳转到主要内容
POST
Advisory

请求规范

  • 方法与路径: POST /apis/v1/github/repositories/advisory
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/github/repositories/advisory
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

按实际用量收费。 默认请求预估费用:$0.0005 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

Authorization
string
header
必填

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

请求体

application/json
cve_id
string
必填

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}/?(?:[?#].*)?$.

响应

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.