# GitHub Advisory Database

The GitHub Advisory Database of reviewed security advisories for open source packages: find advisories by CVE, GHSA ID, package ecosystem, package name or severity, with vulnerable version ranges and first patched versions.

- No API key needed to call
- Source: [GitHub Advisory Database](https://github.com/advisories)
- Licence and terms: [CC BY 4.0](https://github.com/github/advisory-database)
- Coverage: open source packages worldwide
- Answers are shared and cached for 3600 seconds.

## Questions you can ask

- Which GitHub security advisories cover CVE-2021-44228? (operation `github_advisories_search`)
- What is GitHub advisory GHSA-jfh8-c2jp-5v3q? (operation `github_advisories_by_ghsa`)

## Operations

### Search GitHub reviewed security advisories

Answers: which reviewed security advisories match this CVE, package or severity? Returns affected version ranges and the first patched version. All filters are optional; with none the newest advisories are returned.

- `cve_id`: optional, string, Filter by CVE ID.
- `ecosystem`: optional, string, actions \| composer \| erlang \| go \| maven \| npm \| nuget \| other \| pip \| pub \| rubygems \| rust \| swift, Package ecosystem.
- `affects`: optional, string, Package name, optionally name@version.
- `severity`: optional, string, unknown \| low \| medium \| high \| critical
- `per_page`: optional, integer, default 5

Example: Which GitHub security advisories cover CVE-2021-44228?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"github_advisories","operation":"github_advisories_search","params":{"cve_id":"CVE-2021-44228","per_page":2}}}
```

Over HTTP:

```
curl '/v1/connectors/github_advisories/github_advisories_search?cve_id=CVE-2021-44228&per_page=2'
```

### GitHub advisory by GHSA ID

Answers: what are the severity, CVSS score, affected packages and patched versions of this GitHub security advisory?

- `ghsa_id`: required, string, GitHub advisory ID.

Example: What is GitHub advisory GHSA-jfh8-c2jp-5v3q?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"github_advisories","operation":"github_advisories_by_ghsa","params":{"ghsa_id":"GHSA-jfh8-c2jp-5v3q"}}}
```

Over HTTP:

```
curl '/v1/connectors/github_advisories/github_advisories_by_ghsa?ghsa_id=GHSA-jfh8-c2jp-5v3q'
```

## Source notice

Source: GitHub Advisory Database. Terms were not quoted here: see the terms page. The advisory data is published under the Creative Commons Attribution 4.0 licence.

## Missing something?

Tell us what data, endpoint or feature you wish we had. It is free and needs no signup: call the MCP tool request_capability, or POST a short description to https://agentnative.dennery.ai/v1/capabilities/request.
