Live Exposure Defense: From CVE to Confirmed Exposure in 12 Hours – See more

New CVE Detected

CVE-2026-26247 – OAuth2 Authentication Bypass – Gitea before 1.25.5

Be the first to know when new zero-days emerge:

Summary

CVE-2026-26247 is a critical (CVSS 9.1) OAuth2 authentication bypass vulnerability in Gitea, the self-hosted open-source Git service. All Gitea versions before 1.25.5 fail to correctly persist the PKCE (Proof Key for Code Exchange) S256 challenge method during the OAuth2 authorization flow, allowing an attacker to complete a token exchange without supplying the valid code verifier. The flaw is classified as CWE-284 (Improper Access Control) and is remotely exploitable with no privileges or user interaction required.

Technical details

  • Root cause: During the OAuth2 authorization code flow, Gitea does not correctly persist the PKCE S256 challenge method between the authorization request and the token exchange step. This means the server-side check — which should validate that the client possesses the original code verifier matching the S256 challenge — is not reliably enforced.
  • Trigger conditions: Exploitable against any Gitea instance with OAuth2 enabled, operating as an OAuth2 provider using the PKCE S256 challenge method. No authentication and no user interaction are required by the attacker.
  • Attack vector: A network-based attacker who obtains an OAuth2 authorization code — for example via referrer header leakage, server-side log exposure, or an open redirect — can submit that code in a token exchange request without providing the legitimate PKCE code verifier. Because the verifier check is not correctly applied, the server issues a valid OAuth2 access token.
  • Impact: Successful exploitation yields a valid OAuth2 access token on behalf of the targeted user, constituting an effective account takeover. The CVSS vector reflects high confidentiality and integrity impact (C:H/I:H), consistent with unauthorized access to the victim user’s repositories, code, secrets, and any resources governed by the issued token.

Affected software

  • Gitea Open Source Git Server — all versions before 1.25.5

Severity

  • CVSS v3.1 Base Score: 9.1 (Critical)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Mitigation and recommended actions

  • Immediate: Upgrade Gitea to version 1.25.5 or later. The fix is delivered via pull requests #36462 and #36477, which correct the persistence of the PKCE S256 challenge method during authorization.
  • If immediate upgrade is not feasible: Consider temporarily disabling OAuth2 provider functionality in your Gitea configuration to remove the attack surface until patching can be completed.
  • Defense in depth: Review OAuth2 application authorization logs for unexpected token issuances. Restrict inbound access to Gitea OAuth2 endpoints at the network perimeter where external OAuth2 provider use is not required.

IONIX Status

The IONIX research team is tracking ongoing exploitation attempts and recommends immediate patching. Potentially affected assets are outlined in this post.

References

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

How IONIX’s External Exposure Management Platform Detects and Validates
Zero-Days to Shrink MTTR

1

Map your entire attack surface (continously)

IONIX uses multi-factor discovery methods, including DNS analysis, certificate mapping, metadata inspection, and more, to automatically map every internet-facing asset across your environment. This includes cloud instances, third-party platforms, shadow IT, and even forgotten infrastructure that traditional tools miss.

2

Monitor for new CVEs

Dozens of threat intel feeds using agentic technology are continuously analyzed to detect the appearance of proof-of-concept code, exploit kits, and indicators of active targeting. IONIX goes further by applying AI to proactively evaluate whether emerging vulnerabilities are likely to be exploited, even before PoCs go public.

3

Identify Potential External Exposures

Not all CVEs matter. IONIX filters vulnerabilities by asking attacker-centric questions: Can it be reached from the internet? Does it require authentication? Is it being exploited in the wild? This dramatically reduces noise and focuses teams on threats that can actually be weaponized.

4

Create Safe, Scalable Exploit Validations

IONIX transforms real-world PoCs into safe, non-intrusive test payloads that can be run in production environments without disruption. These simulations are precisely targeted to the systems that are vulnerable, ensuring rapid validation without unnecessary load.

5

Execute Exploit Validations

By combining context about software stack, versioning, exposure status, and reachability, IONIX ensures that only the right payloads are executed against the right assets, maximizing efficiency and minimizing risk.

6

Drive Fast and Actionable Remediation

Results are routed through integrations with ticketing, SOAR, and SIEM tools. Issues are written in plain language, bundled into remediation clusters, and prioritized based on asset criticality, exploitability, and blast radius. This shortens mean time to remediation (MTTR) and empowers teams to act with confidence.

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

Subscribe to Threat Center RSS

Copy/paste the link below into your preferred RSS reader or follow these instructions to subscribe to Slack alerts.

Get Real-Time CVE Alerts to Your Email

Be the first to know when new zero-days emerge