Skip to main content
Vulnerability Database/CVE-2026-109844

CVE-2026-109844: Repository Metadata Information Disclosure

CVE-2026-109844 is an information disclosure flaw in the repository subscriptions API that exposes private repository metadata to unauthorized users who lost access. This post covers technical details, impact, and mitigation.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-109844 Overview

CVE-2026-109844 is a missing authorization flaw [CWE-862] in Gitea's GET /api/v1/user/subscriptions endpoint. The API returned metadata for every repository a user had subscribed to without re-checking current access. A user who previously watched a private repository, then lost access through a team permission downgrade or role change, could still read sensitive repository metadata through the subscriptions endpoint. Exposed fields included the repository name, description, clone URLs, owner, and activity counters. Gitea fixed the issue in versions 1.27.0 and 28.0.0, and publicly disclosed it with the 28.2.0 release.

Critical Impact

Authenticated users retain read access to private repository metadata after their permissions are revoked, breaking organizational access control boundaries.

Affected Products

  • Gitea versions prior to 1.27.0
  • Gitea 28.x versions prior to 28.0.0
  • Self-hosted Gitea instances exposing the REST API to authenticated users

Discovery Timeline

  • 2026-10-18 - CVE-2026-109844 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-109844

Vulnerability Analysis

The vulnerability resides in the Gitea REST API handler that services GET /api/v1/user/subscriptions. The endpoint enumerates every repository the calling user watches and returns its metadata in the response. The handler trusted the historical watch relationship as proof of authorization. It did not re-evaluate whether the user still held read access to each repository at the time of the request.

For public repositories this behavior is harmless. For private repositories it creates a persistent information disclosure channel. A user granted access to a private repository through team membership can watch it, then later lose access through a role downgrade, team removal, or organizational restructuring. The watch record remains in the database. The next call to /api/v1/user/subscriptions returns the same metadata the user could read when their permissions were valid.

Exposed fields include repository name, description, clone_url, ssh_url, owner, and counters such as stars, forks, and open issue totals. The disclosure is limited to metadata; file contents, commits, and issue bodies are not returned by this endpoint.

Root Cause

The handler performed a database join between the watch table and the repository table without filtering results through the standard repository access check. This is a classic missing authorization defect categorized under [CWE-862]. State changes to user permissions were not propagated into the watch-driven view.

Attack Vector

Exploitation requires an authenticated account on the target Gitea instance and a prior subscription to the private repository. The attacker issues a single HTTP GET request to /api/v1/user/subscriptions using a valid API token or session cookie. The response contains metadata for every subscribed repository, including those the account can no longer access through the UI or other API endpoints.

See the GitHub Security Advisory GHSA-96gv-2xc4-4hxj and the fix in Gitea Pull Request #38321 for technical details.

Detection Methods for CVE-2026-109844

Indicators of Compromise

  • Access log entries showing GET /api/v1/user/subscriptions from accounts whose team membership or role was recently reduced.
  • API responses to the subscriptions endpoint that include repository identifiers no longer appearing in the same user's GET /api/v1/repos/search results.
  • Audit log evidence of a team permission downgrade followed by subscription endpoint calls from the affected user.

Detection Strategies

  • Correlate authorization change events (team removals, role downgrades) with subsequent calls to /api/v1/user/subscriptions by the same principal.
  • Compare the repository set returned by the subscriptions endpoint against the set returned by access-aware endpoints such as /api/v1/repos/search for the same user.
  • Alert on API tokens that enumerate subscription metadata after a known offboarding or role change workflow completes.

Monitoring Recommendations

  • Enable Gitea access logs and ship them to a centralized log platform for retention and query.
  • Track per-user API call rates against the subscriptions endpoint and baseline normal usage.
  • Review watch records when offboarding users or revoking team access, and remove stale subscriptions as part of the workflow.

How to Mitigate CVE-2026-109844

Immediate Actions Required

  • Upgrade Gitea to version 1.27.0, 28.0.0, or later; 28.2.0 contains the public disclosure and the full fix set.
  • Audit watch records for users whose permissions have been reduced and purge subscriptions that reference repositories they no longer access.
  • Rotate API tokens belonging to recently offboarded users or users whose team membership changed.

Patch Information

The issue was fixed in Gitea 1.27.0 and 28.0.0 and disclosed with 28.2.0. The remediation enforces a repository access check inside the subscriptions handler so that private repositories the caller can no longer read are omitted from the response. See Gitea Pull Request #38321, Gitea Pull Request #38390, and the Gitea Release v28.2.0 notes for the fix content. Operators can also consult the Gitea Release Announcement 28.2.0 for upgrade guidance.

Workarounds

  • Restrict access to the /api/v1/user/subscriptions endpoint at the reverse proxy until the Gitea instance is upgraded.
  • Add a post-offboarding step that deletes watch entries for private repositories through the Gitea administration API.
  • Prefer short-lived API tokens and revoke tokens issued to users whose repository access has been reduced.

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.