List global security advisories
Lists all global security advisories that match the specified parameters. If no other parameters are defined, the request will return only GitHub-reviewed advisories that are not malware.
By default, all responses will exclude advisories for malware, because malware are not standard vulnerabilities. To list advisories for malware, you must include the type parameter in your request, with the value malware. For more information about the different types of security advisories, see “About the GitHub Advisory database.”
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “ Query Parameters ”If specified, only advisories with this GHSA (GitHub Security Advisory) identifier will be returned.
If specified, only advisories of this type will be returned. By default, a request with no other parameters defined will only return reviewed advisories that are not malware.
If specified, only advisories with this CVE (Common Vulnerabilities and Exposures) identifier will be returned.
The package’s language or package management ecosystem.
If specified, only advisories for these ecosystems will be returned.
If specified, only advisories with these severities will be returned.
If specified, only advisories with these Common Weakness Enumerations (CWEs) will be returned.
Example: cwes=79,284,22 or cwes[]=79&cwes[]=284&cwes[]=22
Whether to only return advisories that have been withdrawn.
If specified, only return advisories that affect any of package or package@version. A maximum of 1000 packages can be specified.
If the query parameter causes the URL to exceed the maximum URL length supported by your client, you must specify fewer packages.
Example: affects=package1,package2@1.0.0,package3@2.0.0 or affects[]=package1&affects[]=package2@1.0.0
If specified, only return advisories that were published on a date or date range.
For more information on the syntax of the date range, see “Understanding the search syntax.”
If specified, only return advisories that were updated on a date or date range.
For more information on the syntax of the date range, see “Understanding the search syntax.”
If specified, only show advisories that were updated or published on a date or date range.
For more information on the syntax of the date range, see “Understanding the search syntax.”
If specified, only return advisories that have an EPSS percentage score that matches the provided value. The EPSS percentage represents the likelihood of a CVE being exploited.
If specified, only return advisories that have an EPSS percentile score that matches the provided value. The EPSS percentile represents the relative rank of the CVE’s likelihood of being exploited compared to other CVEs.
A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see “Using pagination in the REST API.”
A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see “Using pagination in the REST API.”
The direction to sort the results by.
The number of results per page (max 100). For more information, see “Using pagination in the REST API.”
The property to sort the results by.
Responses
Section titled “ Responses ”Response
A GitHub Security Advisory.
object
The GitHub Security Advisory ID.
The Common Vulnerabilities and Exposures (CVE) ID.
The API URL for the advisory.
The URL for the advisory.
The API URL for the repository advisory.
A short summary of the advisory.
A detailed description of what the advisory entails.
The type of advisory.
The severity of the advisory.
The URL of the advisory’s source code.
object
The type of identifier.
The identifier value.
The date and time of when the advisory was published, in ISO 8601 format.
The date and time of when the advisory was last updated, in ISO 8601 format.
The date and time of when the advisory was reviewed by GitHub, in ISO 8601 format.
The date and time when the advisory was published in the National Vulnerability Database, in ISO 8601 format. This field is only populated when the advisory is imported from the National Vulnerability Database.
The date and time of when the advisory was withdrawn, in ISO 8601 format.
The products and respective version ranges affected by the advisory.
A vulnerability describing the product and its affected versions within a GitHub Security Advisory.
object
The name of the package affected by the vulnerability.
object
The package’s language or package management ecosystem.
The unique package name within its ecosystem.
The range of the package versions affected by the vulnerability.
The package version that resolves the vulnerability.
The functions in the package that are affected by the vulnerability.
object
The CVSS vector.
The CVSS score.
object
object
The CVSS 3 vector string.
The CVSS 3 score.
object
The CVSS 4 vector string.
The CVSS 4 score.
The EPSS scores as calculated by the Exploit Prediction Scoring System.
object
object
The Common Weakness Enumeration (CWE) identifier.
The name of the CWE.
The users who contributed to the advisory.
object
A GitHub user.
object
The type of credit the user is receiving.
Examples
[ { "id": 1, "ghsa_id": "GHSA-abcd-1234-efgh", "cve_id": "CVE-2050-00000", "url": "https://api.github.com/advisories/GHSA-abcd-1234-efgh", "html_url": "https://github.com/advisories/GHSA-abcd-1234-efgh", "repository_advisory_url": "https://api.github.com/repos/project/a-package/security-advisories/GHSA-abcd-1234-efgh", "summary": "Heartbleed security advisory", "description": "This bug allows an attacker to read portions of the affected server’s memory, potentially disclosing sensitive information.", "type": "reviewed", "severity": "high", "source_code_location": "https://github.com/project/a-package", "identifiers": [ { "type": "GHSA", "value": "GHSA-abcd-1234-efgh" }, { "type": "CVE", "value": "CVE-2050-00000" } ], "references": [ "https://nvd.nist.gov/vuln/detail/CVE-2050-00000" ], "published_at": "2023-03-23T02:30:56Z", "updated_at": "2023-03-24T02:30:56Z", "github_reviewed_at": "2023-03-23T02:30:56Z", "nvd_published_at": "2023-03-25T02:30:56Z", "withdrawn_at": null, "vulnerabilities": [ { "package": { "ecosystem": "npm", "name": "a-package" }, "first_patched_version": "1.0.3", "vulnerable_version_range": "<=1.0.2", "vulnerable_functions": [ "a_function" ] } ], "cvss": { "vector_string": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H", "score": 7.6 }, "cvss_severities": { "cvss_v3": { "vector_string": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H", "score": 7.6 }, "cvss_v4": { "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N", "score": 9.3 } }, "cwes": [ { "cwe_id": "CWE-400", "name": "Uncontrolled Resource Consumption" } ], "epss": { "percentage": 0.00045, "percentile": "0.16001e0" }, "credits": [ { "user": { "login": "octocat", "id": 1, "node_id": "MDQ6VXNlcjE=", "avatar_url": "https://github.com/images/error/octocat_happy.gif", "gravatar_id": "", "url": "https://api.github.com/users/octocat", "html_url": "https://github.com/octocat", "followers_url": "https://api.github.com/users/octocat/followers", "following_url": "https://api.github.com/users/octocat/following{/other_user}", "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", "organizations_url": "https://api.github.com/users/octocat/orgs", "repos_url": "https://api.github.com/users/octocat/repos", "events_url": "https://api.github.com/users/octocat/events{/privacy}", "received_events_url": "https://api.github.com/users/octocat/received_events", "type": "User", "site_admin": false }, "type": "analyst" } ] }]Validation failed, or the endpoint has been spammed.
Validation Error Simple
object
Example generated
{ "message": "example", "documentation_url": "example", "errors": [ "example" ]}Too many requests
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}