GitHub Security Advisories API

Manage security advisories.

GitHub OpenAPI
Business capability
Vulnerability Management BC-620.40

Operations 14

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

2 of 14 operations are conformant: apis.io called them with no credentials and the responses matched this contract; 2 more answered but could not be checked against a schema. Checked 2026-11-12. how this works · status file

GET /advisories List global security advisories · List global security advisories observed #
Ask an LLM
“Which GHSA advisories are published for a given ecosystem?”
“Can I list only malware advisories instead of standard vulnerabilities?”
Tell an agent
List global security advisories for {ecosystem}.
Find the advisory with GHSA {ghsa_id}.
GET /advisories/{ghsa_id} Get a global security advisory · Get a global security advisory observed #
Ask an LLM
“What does a particular GHSA advisory say about a vulnerability?”
“Can I read a global advisory by its GHSA identifier?”
Tell an agent
Get global advisory {ghsa_id}.
Show the full details of GHSA {ghsa_id}.
GET /orgs/{org}/security-advisories List an organization's security advisories · List repository security advisories for an organization conformant #
Ask an LLM
“What security advisories has my organization published?”
“Can I list only the withdrawn advisories for an organization?”
Tell an agent
List security advisories for organization {org}.
Show {state} advisories for {org}.
GET /repos/{owner}/{repo}/security-advisories List a repository's security advisories · List repository security advisories conformant #
Ask an LLM
“Which security advisories exist for a repository?”
“Can I list only the published advisories for a repo?”
Tell an agent
List security advisories for {owner}/{repo}.
Show {state} advisories in {owner}/{repo}.
POST /repos/{owner}/{repo}/security-advisories Create a repository security advisory · Create a repository security advisory #
Ask an LLM
“How do I publish a security advisory for a vulnerability in my repository?”
“Can I request a CVE for a new security advisory?”
Tell an agent
Create a security advisory in {owner}/{repo} titled {summary} with vulnerabilities {vulnerabilities}.
Draft a new advisory {summary} for {owner}/{repo} affecting {vulnerabilities}.
POST /repos/{owner}/{repo}/security-advisories/reports Report a vulnerability privately to a repository · Privately report a security vulnerability #
Ask an LLM
“How do I privately report a security vulnerability to a repository maintainer?”
“Can I attach a CVE ID when privately reporting a vulnerability?”
Tell an agent
Privately report a vulnerability to {owner}/{repo} with summary {summary} and description {description}.
Report a private vulnerability in {owner}/{repo} affecting {vulnerabilities}.
GET /repos/{owner}/{repo}/security-advisories/{ghsa_id} Get a repository security advisory · Get a repository security advisory #
Ask an LLM
“What does a specific GHSA advisory in my repository say?”
“Can I read an unpublished security advisory from a private repository?”
Tell an agent
Get advisory {ghsa_id} in {owner}/{repo}.
Show the full details of {owner}/{repo} advisory {ghsa_id}.
PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id} Update a repository security advisory · Update a repository security advisory #
Ask an LLM
“How do I change the summary or description of an existing advisory?”
“Can I change the state of a security advisory?”
Tell an agent
Update advisory {ghsa_id} in {owner}/{repo} with summary {summary}.
Set the state of {owner}/{repo} advisory {ghsa_id} to {state}.
GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}/comments List comments on a repository advisory · List repository security advisory comments #
Ask an LLM
“What have people said on a repository's security advisory?”
“Can I list comments on an advisory made since a certain date?”
Tell an agent
List comments on advisory {ghsa_id} in {owner}/{repo}.
Show comments on {owner}/{repo} advisory {ghsa_id} updated since {since}.
POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/comments Comment on a repository security advisory · Create a repository advisory comment #
Ask an LLM
“How do I comment on a security advisory in my repository?”
“Can I leave a comment on an advisory without mentioning collaborators?”
Tell an agent
Comment {body} on advisory {ghsa_id} in {owner}/{repo}.
Add a comment to {owner}/{repo} advisory {ghsa_id}.
GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}/comments/{comment_id} Get a comment on a repository advisory · Get a repository advisory comment #
Ask an LLM
“What did someone write in a comment on my security advisory?”
“Can I read a single advisory comment by its ID?”
Tell an agent
Get comment {comment_id} on advisory {ghsa_id} in {owner}/{repo}.
Show advisory {ghsa_id} comment {comment_id} in {owner}/{repo}.
PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}/comments/{comment_id} Edit a comment on a repository advisory · Update a repository advisory comment #
Ask an LLM
“How do I edit a comment I already posted on a security advisory?”
“Can I change the text of an advisory comment?”
Tell an agent
Update comment {comment_id} on advisory {ghsa_id} in {owner}/{repo} to {body}.
Edit advisory {ghsa_id} comment {comment_id} in {owner}/{repo}.
POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve Request a CVE for a repository advisory · Request a CVE for a repository security advisory #
Ask an LLM
“How do I get a CVE ID for a vulnerability in my public repository?”
“Can I request a CVE for a security advisory I just published?”
Tell an agent
Request a CVE for advisory {ghsa_id} in {owner}/{repo}.
Ask for a CVE ID on {owner}/{repo} advisory {ghsa_id}.
POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks Create a private fork for a security advisory · Create a temporary private fork #
Ask an LLM
“How do I get a private fork to fix a vulnerability in a repository?”
“Can I start a private fork from a security advisory?”
Tell an agent
Create a private fork of {owner}/{repo} for advisory {ghsa_id}.
Start a temporary private fork of {owner}/{repo} to fix {ghsa_id}.

Documentation

📖
Documentation
https://docs.github.com/en/rest/apps
📖
Documentation
https://docs.github.com/en/rest/codes-of-conduct/codes-of-conduct
📖
Documentation
https://docs.github.com/en/rest/emojis
📖
Documentation
https://docs.github.com/en/rest/gitignore
📖
Documentation
https://docs.github.com/en/rest/apps/installations
📖
Documentation
https://docs.github.com/en/rest/enterprise-admin
📖
Documentation
https://docs.github.com/en/rest/activity/events
📖
Documentation
https://docs.github.com/en/rest/orgs
📖
Documentation
https://docs.github.com/en/rest/rate-limit
📖
Documentation
https://docs.github.com/en/enterprise-cloud@latest/rest/scim
📖
Documentation
https://docs.github.com/en/rest/using-the-rest-api/getting-started-with-the-rest-api
📖
Documentation
https://docs.github.com/en/rest/teams
📖
Documentation
https://docs.github.com/en/rest/meta/meta
📖
Documentation
https://docs.github.com/en/rest/actions
📖
Documentation
https://docs.github.com/en/rest/branches
📖
Documentation
https://docs.github.com/en/rest/code-scanning
📖
Documentation
https://docs.github.com/en/rest/collaborators
📖
Documentation
https://docs.github.com/en/rest/dependabot
📖
Documentation
https://docs.github.com/en/rest/webhooks
📖
Documentation
https://docs.github.com/en/rest/pulls
📖
Documentation
https://docs.github.com/en/rest/git/tags
📖
Documentation
https://docs.github.com/en/rest/repos/autolinks
📖
Documentation
https://docs.github.com/en/rest/collaborators/invitations
📖
Documentation
https://docs.github.com/en/rest/security-advisories

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/github:github-security-advisories-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

github-security-advisories-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 1.1.4
  title: GitHub v3 REST Security Advisories API
  description: GitHub's v3 REST API.
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
  termsOfService: https://docs.github.com/articles/github-terms-of-service
  contact:
    name: Support
    url: https://support.github.com/contact?tags=dotcom-rest-api
  x-github-plan: api.github.com
servers:
- url: https://api.github.com
tags:


# --- truncated at 32 KB (225 KB total) ---
# Full source: https://artifacts.apis.io/github/openapi/github-security-advisories-api-openapi.yml