Enterprise ServerApplication · GitHub

CVE-2026-4296

HIGH · 8.8 CVSS v3.1 Published 2026-04-21
Fix available
A fix is available. Upgrade to 3.14.26 / 3.15.21 or later.
See remediation →
95/100
Remediation priority · Urgent
Remotely reachable No privileges

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
An incorrect regular expression vulnerability was identified in GitHub Enterprise Server that allowed an attacker to bypass OAuth redirect URI validation. An attacker with knowledge of a first-party OAuth application's registered callback URL could craft a malicious authorization link that, when clicked by a victim, would redirect the OAuth authorization code to an attacker-controlled domain. This could allow the attacker to gain unauthorized access to the victim's account with the scopes granted to the OAuth application. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.21 and was fixed in versions 3.20.1, 3.19.5, 3.18.8, 3.17.14, 3.16.17, 3.15.21, 3.14.26. This vulnerability was reported via the GitHub Bug Bounty program.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

GitHub Enterprise Server contains an incorrect regular expression in OAuth redirect URI validation that allows attackers to bypass the whitelist and redirect authorization codes to attacker-controlled domains by crafting malicious authorization links.

MitigationUpgrade GitHub Enterprise Server to one of the fixed versions (3.20.1, 3.19.5, 3.18.8, 3.17.14, 3.16.17, 3.15.21, 3.14.26 or later). Review OAuth application registrations for suspicious callback URLs.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Enterprise ServerApplication
Affected:< 3.14.26>= 3.15.0, < 3.15.21>= 3.16.0, < 3.16.17>= 3.17.0, < 3.17.14>= 3.18.0, < 3.18.8>= 3.19.0, < 3.19.5= 3.20.0

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify GitHub Enterprise Server version
    Run 'ghe-version' from the management shell or check the admin console dashboard for the current version number
    Affected if The installed version falls within any of these ranges: < 3.14.26, >= 3.15.0 and < 3.15.21, >= 3.16.0 and < 3.16.17, >= 3.17.0 and < 3.17.14, >= 3.18.0 and < 3.18.8, >= 3.19.0 and < 3.19.5, or exactly 3.20.0
  2. Verify OAuth application configuration
    Navigate to Site Admin > OAuth applications or use the API endpoint /api/v3/applications to list all registered OAuth apps and their redirect URIs
    Affected if OAuth applications are enabled and configured with redirect URIs
  3. Review OAuth redirect URIs for suspicious patterns
    Examine each OAuth application's Authorization callback URL field for domains that are not owned by your organization, unusually long URLs, or domains containing typical attacker patterns (for example, look for redirects to external domains not in your allowlist)
    Affected if Any OAuth application has a redirect URI pointing to an unexpected or external domain, or exhibits regex-bypass characteristics like nested subdomains or unusual URL structures
  4. Check audit logs for OAuth authorization anomalies
    In the admin console, go to Auditing > Search and filter for events like 'oauth_authorization' or 'oauth_access_token', paying attention to redirects that lead to unfamiliar domains
    Affected if Audit logs show OAuth authorization codes being sent to domains not explicitly allowed in your OAuth configuration

A user is affected if they run a vulnerable GitHub Enterprise Server version AND have OAuth applications configured, with the vulnerability exploitable through maliciously crafted redirect URIs in authorization links.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 3.14.26 / 3.15.21 / 3.16.17 or later
Fixed in 3.14.263.15.213.16.17
Interim mitigation

Upgrade GitHub Enterprise Server to one of the fixed versions (3.20.1, 3.19.5, 3.18.8, 3.17.14, 3.16.17, 3.15.21, 3.14.26 or later). Review OAuth application registrations for suspicious callback URLs.

Recommended fix High confidence

3.14.26, 3.15.21, 3.16.17, 3.17.14, or later (3.18.x, 3.19.x, 3.20.x, 3.21+)

  1. 1. Identify the current GitHub Enterprise Server version by navigating to the admin console or running: ghe-version
  2. 2. Based on current version, determine the minimum fixed release needed: if < 3.14.26, upgrade to 3.14.26 or later; if >= 3.15.0 and < 3.15.21, upgrade to 3.15.21 or later; if >= 3.16.0 and < 3.16.17, upgrade to 3.16.17 or later; if >= 3.17.0 and < 3.17.14, upgrade to 3.17.14 or later
  3. 3. Review GitHub Enterprise Server upgrade prerequisites and backup procedures at docs.github.com
  4. 4. Perform the upgrade following the standard GitHub Enterprise Server upgrade process
  5. 5. After upgrade, verify the OAuth application redirect URI validation is working correctly
  6. 6. Audit existing OAuth applications to ensure redirect URIs are correctly configured
Caveat Standard GitHub Enterprise Server upgrade risks apply - review release notes for breaking changes between your current and target version

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Enterprise Server Scoped from the published advisory
  • Consultation4.0 h
  • Implementation12.0 h
  • Testing6.0 h
  • Review / QA3.0 h
25.0 hours of engineering $4,400
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $7,040.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-4296 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-4296 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data