Vulnerability DatabaseCVE-2026-103620

CVE-2026-103620: 
GitHub Enterprise Server vulnerability analysis and mitigation

Overview

CVE-2026-103620 is a missing authorization vulnerability in GitHub Enterprise Server (GHES) that allows a repository collaborator with write access to delete the current default branch via the GraphQL API, causing an attacker-controlled branch to become the new default. This effectively bypasses pull-request review requirements in repositories that enforce reviews but do not restrict branch deletion. The vulnerability affects GHES versions in the 3.18, 3.19, 3.20, 3.21, and 3.22 series, and was disclosed on October 6, 2026. It carries a CVSS v3.1 base score of 6.5 (Medium) and a CVSS v4.0 base score of 6.0 (Medium) (GHES 3.18 Release Notes, GHES 3.22 Release Notes).

Technical details

The root cause is classified as CWE-862 (Missing Authorization): the GraphQL API endpoint responsible for branch deletion did not enforce an authorization check to prevent deletion of the repository's current default branch by collaborators with write access. An attacker with write access to a repository can craft a GraphQL mutation to delete the default branch, then have a pre-existing attacker-controlled branch automatically promoted to the new default. The attack requires no user interaction and is executable over the network with low privileges. The precondition is that the target repository must require pull-request reviews but must not have branch deletion restrictions enabled — a common configuration gap. No public proof-of-concept code has been identified (GHES 3.20 Release Notes, Feedly).

Impact

Successful exploitation allows an attacker to replace a repository's default branch with attacker-controlled content, bypassing mandatory pull-request review requirements. This has a high integrity impact: fresh clones of the repository and default-branch API requests will serve attacker-controlled code, which could propagate malicious changes to downstream consumers, CI/CD pipelines, or automated deployments. There is no direct confidentiality or availability impact, but the supply chain risk is significant — injected code could be silently incorporated into builds or deployments without the normal review safeguards (GHES 3.19 Release Notes, Feedly).

Exploitability

There is no evidence of public proof-of-concept code or active in-the-wild exploitation as of the time of disclosure. The EPSS score is approximately 0.0045 (0.45%), indicating a low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported. The vulnerability was responsibly disclosed through the GitHub Bug Bounty program (Feedly, GHES 3.22 Release Notes).

Exploitation steps

  1. Identify a target repository: Locate a repository on a vulnerable GHES instance (versions 3.18.x < 3.18.16, 3.19.x < 3.19.13, 3.20.x < 3.20.9, 3.21.x < 3.21.7, or 3.22.x < 3.22.2) that requires pull-request reviews but does not restrict branch deletion.
  2. Obtain write access: Ensure the attacker account has at least collaborator-level write access to the target repository (e.g., via a compromised account or a malicious insider).
  3. Create an attacker-controlled branch: Push a branch containing malicious content to the repository. This branch will become the new default after exploitation.
  4. Craft a GraphQL mutation: Using the GHES GraphQL API, send a mutation to delete the current default branch. Because the API lacks proper authorization checks for this operation, the request succeeds despite the branch being the default.
  5. Default branch takeover: With the original default branch deleted, the attacker-controlled branch is promoted to the new default by the server.
  6. Impact propagation: Any subsequent git clone operations, CI/CD pipeline triggers, or default-branch API requests will now retrieve attacker-controlled content, bypassing the pull-request review requirement entirely (GHES 3.20 Release Notes, Feedly).

Indicators of compromise

  • Audit Logs: Review GHES audit logs for git.branch.delete or equivalent GraphQL mutation events targeting the default branch of a protected repository, especially from accounts that are collaborators rather than administrators.
  • Audit Logs: Look for rapid succession of a default branch deletion event followed by a default branch change event in the same repository.
  • Repository State: Unexpected change in the default branch of a repository — particularly to a branch not previously designated as default and not associated with an approved pull request.
  • Git Activity: Fresh clones or CI/CD pipeline runs pulling from a branch that differs from the historically expected default branch name.
  • GraphQL API Logs: Unusual GraphQL API calls from collaborator-level accounts invoking branch deletion mutations on protected repositories (GHES 3.18 Release Notes, Feedly).

Mitigation and workarounds

GitHub has released patched versions addressing this vulnerability: 3.18.16, 3.19.13, 3.20.9, 3.21.7, and 3.22.2. Administrators should upgrade to the appropriate patched release as the primary remediation. As an interim workaround, repository administrators should enable branch deletion restrictions on all repositories that enforce pull-request reviews, preventing collaborators from deleting protected branches. Restricting branch deletion permissions at the repository or organization level eliminates the precondition required for exploitation (GHES 3.18 Release Notes, GHES 3.22 Release Notes).

Community reactions

The vulnerability was reported through the GitHub Bug Bounty program and disclosed alongside the October 6, 2026 patch releases. GitHub classified the severity as MEDIUM in its official release notes across all affected series. No notable independent researcher commentary, social media discussion, or significant media coverage has been identified beyond the official release notes (GHES 3.21 Release Notes).

Additional resources


Source: This report was generated using AI

Related GitHub Enterprise Server vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-77987CRITICAL9.3
  • GitHub Enterprise Server logoGitHub Enterprise Server
  • cpe:2.3:a:github:enterprise_server
NoYesSep 22, 2026
CVE-2026-96890HIGH8.7
  • GitHub Enterprise Server logoGitHub Enterprise Server
  • cpe:2.3:a:github:enterprise_server
NoYesOct 06, 2026
CVE-2026-77912HIGH7.4
  • GitHub Enterprise Server logoGitHub Enterprise Server
  • cpe:2.3:a:github:enterprise_server
NoYesSep 22, 2026
CVE-2026-103620MEDIUM6
  • GitHub Enterprise Server logoGitHub Enterprise Server
  • cpe:2.3:a:github:enterprise_server
NoYesOct 06, 2026
CVE-2026-75101MEDIUM6
  • GitHub Enterprise Server logoGitHub Enterprise Server
  • cpe:2.3:a:github:enterprise_server
NoYesSep 22, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management