The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-20904

CVE-2026-20904: Gitea Auth Bypass Vulnerability

CVE-2026-20904 is an authentication bypass flaw in Gitea that allows authenticated users to modify OpenID URI visibility settings of other users. This post covers technical details, affected versions, and mitigation.

Published: January 23, 2026

CVE-2026-20904 Overview

CVE-2026-20904 is a Broken Access Control vulnerability in Gitea, a self-hosted Git service. The vulnerability exists because Gitea does not properly validate ownership when toggling OpenID URI visibility. An authenticated user may be able to change the visibility settings of other users' OpenID identities, potentially exposing sensitive authentication information or allowing attackers to manipulate identity configurations.

Critical Impact

Authenticated attackers can modify the visibility settings of other users' OpenID identities, potentially exposing sensitive authentication information or disrupting identity management.

Affected Products

  • Gitea versions prior to 1.25.4

Discovery Timeline

  • 2026-01-22 - CVE CVE-2026-20904 published to NVD
  • 2026-01-22 - Last updated in NVD database

Technical Details for CVE-2026-20904

Vulnerability Analysis

This vulnerability is classified under CWE-284 (Improper Access Control), indicating that the application fails to properly restrict access to a resource or function. In the context of Gitea, the OpenID URI visibility toggle functionality lacks proper ownership validation, allowing any authenticated user to potentially manipulate the visibility settings of OpenID identities belonging to other users.

The flaw stems from an improper authorization check in the code path that handles OpenID visibility toggling. When a user attempts to modify the visibility of an OpenID URI, the application does not adequately verify that the requesting user is the legitimate owner of that OpenID identity. This allows for horizontal privilege escalation where users can affect resources belonging to other users at the same privilege level.

Root Cause

The root cause is an improper access control implementation in the OpenID URI visibility toggle functionality. The application fails to validate that the user making the request is the actual owner of the OpenID identity being modified before processing the visibility change. This authorization bypass allows authenticated users to manipulate resources they should not have access to.

Attack Vector

An attacker with a valid authenticated session on a Gitea instance can exploit this vulnerability by intercepting and modifying requests to the OpenID visibility toggle endpoint. By manipulating the request parameters to reference another user's OpenID identity, the attacker can change the visibility settings without proper authorization.

The attack requires:

  1. A valid authenticated account on the target Gitea instance
  2. Knowledge or enumeration of other users' OpenID identity identifiers
  3. The ability to craft requests to the OpenID visibility toggle endpoint

The vulnerability can be exploited through direct API manipulation or by modifying web requests in transit. For detailed technical information, refer to the GitHub Security Advisory GHSA-jrpc-w85r-hgqx.

Detection Methods for CVE-2026-20904

Indicators of Compromise

  • Unexpected changes to OpenID URI visibility settings for user accounts
  • Log entries showing OpenID visibility modifications by users who do not own those identities
  • Anomalous API requests to OpenID-related endpoints with mismatched user context

Detection Strategies

  • Monitor application logs for OpenID visibility toggle operations where the acting user differs from the identity owner
  • Implement audit logging for all identity management operations
  • Review access logs for unusual patterns of requests to OpenID management endpoints
  • Deploy web application firewalls with rules to detect parameter manipulation attacks

Monitoring Recommendations

  • Enable detailed audit logging for all user profile and identity management operations
  • Configure alerts for bulk or rapid OpenID visibility changes across multiple users
  • Monitor for enumeration attempts against user OpenID endpoints
  • Review and correlate authentication logs with OpenID management activity

How to Mitigate CVE-2026-20904

Immediate Actions Required

  • Upgrade Gitea to version 1.25.4 or later immediately
  • Audit OpenID visibility settings across all user accounts for unauthorized modifications
  • Review access logs for signs of exploitation prior to patching
  • Consider temporarily disabling OpenID functionality if immediate patching is not possible

Patch Information

The vulnerability has been addressed in Gitea version 1.25.4. The fix implements proper ownership validation before allowing visibility changes to OpenID identities. Organizations should upgrade to this version or later to remediate the vulnerability.

For detailed patch information, see:

  • Gitea Release v1.25.4
  • Gitea Release Announcement
  • Pull Request #36346
  • Pull Request #36361

Workarounds

  • Disable OpenID authentication functionality until the patch can be applied
  • Implement network-level access controls to restrict access to the Gitea instance
  • Use a reverse proxy to add additional authentication layers before reaching the application
  • Monitor and alert on any OpenID-related API requests as an interim measure
bash
# Example: Disable OpenID in Gitea configuration (app.ini)
[openid]
ENABLE_OPENID_SIGNIN = false
ENABLE_OPENID_SIGNUP = false

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechGitea

  • SeverityNONE

  • CVSS ScoreN/A

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-284
  • Technical References
  • Gitea Release Announcement

  • Gitea Pull Request #36346

  • Gitea Pull Request #36361

  • Gitea Release v1.25.4

  • GitHub Security Advisory GHSA-jrpc-w85r-hgqx
  • Related CVEs
  • CVE-2026-20912: Gitea Auth Bypass Vulnerability

  • CVE-2026-20897: Gitea Auth Bypass Vulnerability

  • CVE-2026-20888: Gitea Auth Bypass Vulnerability

  • CVE-2026-20883: Gitea Auth Bypass Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English