Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify first-party OAuth app callback URL
-
DeliveryCraft authorization link bypassing redirect regex
-
ExploitPhish victim to click link
-
ExecutionVictim's browser completes OAuth flow
-
PersistAuthorization code redirected to attacker domain
-
ImpactExchange code for account access within app scopes
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Incorrect input validation
|
| Exploitation Conditions | Exploitation requires all of the following concrete prerequisites: (1) the attacker must know a first-party OAuth application's registered callback URL on the target GitHub Enterprise Server instance (the AT:P attack requirement); (2) the attacker must craft a malicious authorization link whose redirect_uri abuses the incorrect redirect-URI validation regex; and (3) a victim must actively click that link while authenticated, so the authorization flow completes (UI:P / passive user interaction). Limiting factors that reduce realistic risk: the CVSS vector indicates low-privilege access is needed (PR:L), the attack is not automatable per CISA SSVC, and the resulting access is bounded by the scopes granted to the abused OAuth application. Instances on 3.21+ or any of the fixed point releases are not affected. |
| Impact | Signals point to a genuine but not urgent, mass-scannable threat. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:P) shows the attack is network-borne but gated by three real hurdles: a present attack requirement (AT:P - knowing the registered callback URL), low-privilege access (PR:L), and passive victim interaction (UI:P - the victim must click the malicious link). Technical impact is rated 'total' (VC:H/VI:H/VA:H) reflecting full account compromise, but SSVC marks Exploitation: none and Automatable: no, and EPSS is 0.05% (15th percentile) - consistent with a targeted, social-engineering-dependent attack rather than worm-like exploitation. There is no KEV listing and no known POC. Note a tension worth flagging: the VA:H (availability) rating is generous for what is fundamentally a token-theft/account-access issue whose real impact is bounded by the compromised OAuth app's scopes; confidentiality and integrity impact are the substantive risks. Overall: a legitimate account-takeover vector that merits prompt patching but is not a drop-everything, internet-wide emergency. |
| Exploit ScenarioDerived | An attacker who knows the registered callback URL of a first-party OAuth app on a target GHES instance crafts an authorization link whose redirect_uri passes the flawed regex but resolves to a domain they control. They send the link to a logged-in victim (e.g., via a phishing message); when the victim clicks and their browser completes the authorization flow, the OAuth authorization code is redirected to the attacker's domain, which the attacker exchanges for access to the victim's account within the app's granted scopes. No public exploit code is identified at time of analysis, and success depends on the victim clicking the crafted link. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 24, 2026
Account takeover in GitHub Enterprise Server (all versions prior to 3.21) is possible through an OAuth redirect URI validation bypass caused by a flawed regular expression (CWE-185). An attacker who knows a first-party OAuth application's registered callback URL can craft a malicious authorization link that leaks the victim's OAuth authorization code to an attacker-controlled domain, granting access to the victim's account with the scopes of that application. Reported via the GitHub Bug Bounty program; there is no public exploit identified at time of analysis, EPSS is very low (0.05%), and CISA SSVC records exploitation status as none.
RemediationAI
Vendor-released patch: upgrade to GitHub Enterprise Server 3.20.1, 3.19.5, 3.18.8, 3.17.14, 3.16.17, 3.15.21, or 3.14.26 depending on your branch - each is documented in the corresponding admin release notes (e.g., https://docs.github.com/en/enterprise-server@3.19/admin/release-notes#3.19.5 and the equivalent @3.14 through @3.20 pages). Upgrading the appliance is the definitive fix and should be prioritized because no in-product configuration toggle disables the vulnerable redirect-validation path. Until you can patch, compensating controls are limited but useful: audit and minimize the scopes granted to first-party OAuth applications so a leaked code yields the least access; review OAuth app registrations and, where feasible, tighten or rotate registered callback URLs to reduce the pool of abusable first-party apps; and educate/administratively warn users against clicking unexpected 'authorize' links, since exploitation requires victim interaction. These controls reduce blast radius and likelihood but do not close the underlying regex bypass, so they are stopgaps rather than a substitute for the upgrade.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw sits in the OAuth 2.0 authorization-code flow of GitHub Enterprise Server, the self-hosted appliance version of GitHub. During authorization, the server must validate that the redirect_uri in an authorization request exactly matches the callback URL registered for the OAuth application. CWE-185 (Incorrect Regular Expression) means the validation regex was too permissive - likely unanchored or improperly escaping the URL structure - so a crafted redirect_uri that superficially matches the registered callback but points to an attacker domain passes validation. Because the authorization code is delivered to whatever redirect target survives validation, a regex weakness here directly translates into credential/token leakage. CPE data confirms the affected component is cpe:2.3:a:github:enterprise_server across the 3.14-3.20 branches, including the explicitly listed 3.20.0 build.
Know when Github gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Victim must click a crafted authorization link (UI:R) and attacker needs low-priv access plus the app's callback URL; stolen OAuth code grants account access (C:H/I:H) with no direct availability loss (A:N).
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
Lifecycle Timeline
3DescriptionGitHub Advisory
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.
Executive ViewAI
GitHub Enterprise Server versions prior to 3.21 are vulnerable to account takeover through malicious OAuth redirect manipulation, threatening all users of GitHub-integrated applications. Successful exploitation could grant attackers access to source code repositories, development infrastructure, and stored organizational credentials.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Supply chain vulnerability in Eclipse Theia GitHub Actions workflow. The preview.yml workflow uses pull_request_target w
Supply chain attack vector in OpenLIT GitHub Actions workflows. The pull_request_target trigger with checkout enables ma
Eigent multi-agent workflow CI pipeline (ci.yml) uses pull_request_target with checkout of untrusted PR code, enabling a
An unsafe reflection vulnerability was identified in GitHub Enterprise Server that could lead to reflection injection. R
cmark-gfm is GitHub's extended version of the C reference implementation of CommonMark. Rated critical severity (CVSS 9.
An improper verification of cryptographic signature vulnerability was identified in GitHub Enterprise Server that allowe
Unauthenticated infrastructure overwrite in Hoppscotch API development ecosystem before 2026.2.0. Attackers can overwrit
A exposure of sensitive information vulnerability exists in Jenkins GitHub Plugin 1.29.1 and earlier in GitHubTokenCrede
OneUptime versions prior to 10.0.19 allow unauthenticated attackers to hijack GitHub App integrations across projects by
PolarLearn versions 0-PRERELEASE-15 and earlier lack proper state parameter validation in OAuth 2.0 authentication, enab
Path traversal in esm.sh CDN prior to version 0.0.0-20260116051925-c62ab83c589e allows unauthenticated remote attackers
actions/artifact is the GitHub ToolKit for developing GitHub Actions. Rated high severity (CVSS 7.5), this vulnerability
EUVD-2026-24545
GHSA-mcp7-23p7-2v34
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB