MEDIUM 6.5

CVE-2026-9132: GitHub Enterprise Server Missing Authorization in Copilot Endpoint

A security flaw in GitHub Enterprise Server allowed authenticated users to view source code from private repositories they shouldn't have access to. The vulnerability existed in the Copilot pull request description feature, which compared code across repositories without properly checking if the user had permission to see the target repository. An attacker needed only a valid account with read access to at least one repository on the instance to exploit this and extract sensitive code from restricted repositories.

Source data · NVD / CISA · public domain

CVSS
3.1 · 6.5 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Weaknesses (CWE)
CWE-862
Affected products
1 configuration(s)
Published / Modified
2026-06-30 / 2026-07-02

NVD description (verbatim)

A missing authorization vulnerability was identified in GitHub Enterprise Server that allowed an authenticated user to read source code from private repositories they did not have access to. The Copilot pull request description diff summary endpoint accepted a cross-repository comparison range and rendered the resulting diff without verifying that the requesting user was authorized to view the target repository. Exploitation required an authenticated account on the instance with read access to at least one repository to use as the comparison base. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.21 and was fixed in versions 3.17.17, 3.18.11, 3.19.8, and 3.20.4. This vulnerability was reported via the GitHub Bug Bounty program.

4 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

CVE-2026-9132 is a missing authorization vulnerability (CWE-862) in the Copilot pull request description diff summary endpoint of GitHub Enterprise Server. The endpoint accepted cross-repository comparison ranges and rendered diffs without performing authorization checks on the target repository. This allowed an authenticated user with PR-comment privileges on at least one repository to construct API calls that would leak source code from any other repository on the instance, bypassing repository access controls. The vulnerability affected all versions prior to 3.21, with patches released for versions 3.17.17, 3.18.11, 3.19.8, and 3.20.4.

Business impact

This vulnerability poses a significant insider risk and intellectual property exposure concern. An employee or contractor with limited repository access could exfiltrate proprietary code, algorithms, or sensitive logic from restricted projects. For organizations using GitHub Enterprise Server to manage confidential codebases, this creates compliance violations (SOX, HIPAA, data residency laws) if sensitive code was accessed without authorization. The flaw is particularly concerning in multi-tenant or federated development environments where repository isolation is a key security boundary.

Affected systems

GitHub Enterprise Server versions prior to 3.21 are affected. Organizations running versions 3.17, 3.18, 3.19, or 3.20 should immediately upgrade to the patched releases: 3.17.17, 3.18.11, 3.19.8, or 3.20.4 respectively. Version 3.21 and later are not vulnerable. On-premises GitHub Enterprise Server instances are the only affected product line; GitHub.com SaaS is not impacted.

Exploitability

Exploitation requires a valid, authenticated account on the GitHub Enterprise Server instance with at least read access to one repository. This is a low barrier to entry—any legitimate user, contractor, or compromised credential can perform the attack. No special tools or complex steps are needed; the attacker simply structures a cross-repository comparison in the Copilot endpoint. The attack is also difficult to detect through normal audit logs, as it appears as legitimate API activity. The CVSS 3.1 score of 6.5 (Medium) reflects the requirement for authentication but acknowledges the high confidentiality impact.

Remediation

Immediately upgrade GitHub Enterprise Server to a patched version: 3.17.17, 3.18.11, 3.19.8, or 3.20.4. For instances on version 3.21 or later, no action is required. Administrators should verify their current version and plan upgrades according to your change management process. After patching, no configuration changes are necessary; the fix is automatic. Review audit logs for any suspicious cross-repository diff requests during the window the vulnerability was exposed.

Patch guidance

GitHub provides out-of-cycle security releases for this issue. Prioritize patching based on your instance version: (1) Identify your current GitHub Enterprise Server version via the Management Console or API; (2) consult the official GitHub advisory for your release line to confirm the patched version; (3) schedule downtime if required (verify whether the update requires a restart); (4) deploy the patch in a staging environment first to test Copilot and PR workflows; (5) roll out to production and verify the Copilot endpoint is functioning correctly post-deployment. Document the patch date for compliance records.

Detection guidance

Audit cross-repository API activity on your GitHub Enterprise Server logs, specifically requests to Copilot endpoints or diff summary features that reference repositories outside the user's normal access patterns. Look for authenticated users comparing code across repositories they don't typically interact with. Enable verbose logging if available. Check git access logs and API audit trails for anomalous repository access by users with limited repository permissions. Consider monitoring for unusual patterns of read activity on sensitive repositories by accounts that should not have such access. After patching, these patterns should cease if exploitation occurred.

Why prioritize this

This vulnerability ranks as a high-priority patch due to its insider-risk profile, low barrier to exploitation, and direct impact on code confidentiality. While authentication is required (limiting external attack), any internal user or compromised employee account can exploit it trivially. The impact on intellectual property and regulatory compliance is severe. Organizations with large, multi-team repositories or strict code compartmentalization should treat this as critical.

Risk score, explained

The CVSS 3.1 score of 6.5 (Medium) reflects: (1) Network-accessible endpoint (AV:N); (2) low attack complexity, requiring only valid credentials (AC:L, PR:L); (3) high confidentiality impact—source code from unauthorized repositories is leaked (C:H); (4) no integrity or availability impact (I:N, A:N); (5) unchanged security scope (S:U). The 'Medium' severity understates the business risk for organizations whose competitive advantage depends on code secrecy; security teams should treat this as a high-priority vulnerability in practice.

Frequently asked questions

Do we need to patch if we're on GitHub.com (SaaS)?

No. This vulnerability affects only GitHub Enterprise Server (on-premises). GitHub.com SaaS is not vulnerable and requires no action.

Can this be exploited remotely without a valid account?

No. Exploitation requires an authenticated user account on the GitHub Enterprise Server instance with at least read access to one repository. A valid credential is mandatory; the attack cannot be performed anonymously.

What should we look for in our logs to see if we were exploited?

Search for cross-repository diff or comparison requests made through the Copilot endpoint, especially by users accessing repositories outside their typical scope. Unusual API activity from low-privilege accounts accessing high-value repositories is a red flag. However, legitimate development activity may also generate such requests, so context is important.

If we upgrade, do we need to re-authorize users or change settings?

No. The patch is a code fix that requires no administrative reconfiguration. After upgrading to a patched version, the authorization checks are automatically enforced and users will no longer be able to exploit this flaw.

This analysis is based on the official CVE record and GitHub advisory as of June 30, 2026. Patch version numbers and affected version ranges should be verified against the latest GitHub Enterprise Server security advisory before deployment. Organizations should conduct their own risk assessment based on repository sensitivity and user access policies. No liability is assumed for patching decisions or outcomes. Consult GitHub Support for environment-specific guidance. Source: NVD (public-domain), retrieved 2026-08-09. Analysis generated by SEC.co (claude-haiku-4-5).