Skip to main content
This guide shows how to create a draft security advisory for a GitHub repository using the GitHub Advisory workflow (part of GitHub Advanced Security). Follow the steps below to draft, complete, and submit an advisory that documents a vulnerability, affected products/versions, severity, and credits — and optionally requests a CVE. Step-by-step overview
  1. Open the repository Security & Quality → Overview page.
  2. Go to Security → Advisories and click New draft security advisory.
  3. Fill in the advisory details (title, description, affected packages/versions, CVSS severity, credits, references).
  4. Keep the advisory in draft while coordinating remediation; publish when ready and request a CVE if required.
Open the Security & Quality overview
  • From your repository, navigate to Security and Quality → Overview. This page shows the repository’s security features and current statuses (Dependabot alerts, code scanning, security advisories, security policy, etc.).
  • If the Security Policy is disabled, you can add it separately later; it is not required to draft an advisory.
A screenshot of a GitHub repository's "Security and quality" → "Overview" page showing security features and their statuses. It shows the security policy as disabled while items like security advisories, private vulnerability reporting, Dependabot alerts, and code scanning are enabled.
Create a new draft advisory
  • Navigate to Security → Advisories in the repository.
  • If you haven’t published advisories, the list will be empty; click New draft security advisory to open the advisory form.
  • The draft form collects the vulnerability title, a full description (impact, patches, workarounds, references), affected products/versions, severity (CVSS), and credits. You can save and update the draft at any time.
For this demo the title used was: Remote Code Execution via Path Traversal in File Upload Handler When you open the draft form you can populate the description to cover:
  • impact on users and systems
  • available patches and patch versions
  • workarounds or mitigation steps
  • links to pull requests, commits, or external advisories
A screenshot of GitHub's "Open a draft security advisory" page with a filled-in form titled "Remote Code Execution via Path Traversal in File Upload Handler," including a detailed description of impact, patches, and workarounds. The right sidebar shows access and visibility notes for the draft advisory.
Affected product and versions
  • Choose the package ecosystem (for example, npm for Node.js projects).
  • Enter the package name (demo example used: demo-express-npm).
  • Specify affected versions and the patched version.
Example values
  • Ecosystem: npm
  • Package name: demo-express-npm
  • Affected version: "<2.4.1"
  • Patched version: 2.4.2
If the exact package name is not found (private or unindexed packages), GitHub will warn you but still allow submission of the advisory for unknown or private packages. Suggested table of fields to include in the advisory Severity and CVSS scoring
  • The advisory form integrates a CVSS calculator so you can derive the CVSS vector string and numeric score from standardized options.
  • Complete the CVSS parameters: Attack Vector (AV), Attack Complexity (AC), Privileges Required (PR), User Interaction (UI), and Confidentiality/Integrity/Availability (C/I/A) impacts.
  • GitHub computes a CVSS vector string and the numeric severity (e.g., 9.8 for a network-level RCE).
A dark-mode screenshot of a GitHub security advisory form showing an affected npm package ("demo-express-uploader") with affected versions <2.4.1 and patched version 2.4.2. The advisory lists severity as Critical (9.8) and includes a CVSS vector string and scoring calculator options.
Use the CVSS calculator provided in the form rather than guessing severity. The calculator derives the vector string and numeric score from the options you select (attack vector, privileges, user interaction, confidentiality/integrity/availability impacts, etc.).
Additional advisory fields
  • Add a Common Weakness Enumeration (CWE) identifier where applicable (for example, CWE-22 for path traversal).
  • Add credits and roles to acknowledge contributors. Typical role types:
    • Analyst
    • Finder / Reporter
    • Coordinator
    • Remediation Developer
    • Remediation Reviewer
    • Remediation Verifier
    • Sponsor
Roles and descriptions
  • Include references and links to patches, pull requests, commits, or external advisories (CVE reports, vendor advisories, blog posts).
Finalizing and publishing the advisory
  • Save and keep the advisory as a draft while coordinating fixes and communicating with stakeholders.
  • When the fix is ready, you can submit the advisory to publish it to the GitHub Advisory Database (https://github.com/advisories) and optionally request a CVE ID during submission.
  • For private fixes, GitHub supports creating a temporary private fork to prepare a patch before public disclosure so commit history for the fix remains private until you publish.
  • After submission, GitHub will review the advisory, complete CVE assignment (if requested), and proceed with the publishing workflow.
Quick publication checklist
  • Title and short summary complete
  • Full description with impact, workaround, and patch links
  • Affected packages and accurate version ranges
  • CVSS vector and numeric score reviewed
  • Credits and references added
  • Draft coordinated with remediation team and legal/communications as needed
Links and references

Watch Video