MEDIUM 4.3

CVE-2026-27761: Gitea RSS/Atom Feed Authorization Bypass (CVSS 4.3)

Gitea, a self-hosted Git platform, contains a flaw in how it validates API permissions on feed endpoints. Specifically, the RSS and Atom feed features for repositories do not properly enforce token scope restrictions. This means a token that lacks permission to access a private repository can still retrieve sensitive commit information by accessing the feed endpoints directly. The issue affects Gitea versions up to 1.26.2.

Source data · NVD / CISA · public domain

CVSS
3.1 · 4.3 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Weaknesses (CWE)
CWE-863
Affected products
0 configuration(s)
Published / Modified
2026-07-03 / 2026-07-07

NVD description (verbatim)

Gitea versions up to and including 1.26.2 allow repository RSS and Atom feed endpoints to bypass API access token scope checks, exposing private repository commit data to tokens without the required repository scope.

5 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

CVE-2026-27761 is an authorization bypass vulnerability in Gitea's feed infrastructure. The vulnerability stems from insufficient scope validation on repository RSS and Atom feed endpoints (CWE-863: Improper Authorization). While Gitea's general API enforces fine-grained token scopes, the feed endpoints bypass this control layer, allowing an authenticated attacker holding a token without repository-level permissions to enumerate and view private repository commits through feed consumption. The vulnerability requires an authenticated session or valid (albeit insufficiently scoped) API token, limiting exposure to users with at least basic platform access.

Business impact

Organizations self-hosting Gitea for private code repositories face a direct risk of unintended information disclosure. An internal user or contractor with limited API permissions could access commit histories, code changes, and repository metadata they should not be able to see. This is particularly concerning for teams managing multiple security-sensitive repositories or using token-based CI/CD integrations, where overly permissive tokens are sometimes distributed. The breach of scope enforcement erodes trust in Gitea's access control model and may violate internal compliance policies around least-privilege access.

Affected systems

All Gitea instances running version 1.26.2 or earlier are affected. Gitea 1.26.3 and later versions contain fixes for this issue. Self-hosted Gitea deployments are the primary attack surface; this does not affect Gitea.com or other managed hosting services that maintain independent patch schedules. The vulnerability is most relevant to organizations running Gitea in air-gapped or internal network environments where multiple users or service accounts hold different API tokens.

Exploitability

Exploitation requires an authenticated attacker with a valid Gitea account or API token, even if that token lacks the intended repository scope. No special privileges, user interaction, or network positioning beyond standard internet access is required. The attack is straightforward: an attacker simply requests the RSS or Atom feed URL for a private repository using an insufficiently scoped token, and the endpoint returns commit data. This low barrier to exploitation is mitigated by the requirement for initial authentication; opportunistic mass scanning from the open internet is not feasible without valid credentials.

Remediation

Upgrade Gitea to version 1.26.3 or later, which implements proper scope validation on feed endpoints. Verify the upgrade against official Gitea release notes and checksums. For organizations unable to patch immediately, implement network controls restricting API token usage to specific repositories and monitor feed endpoint access logs for anomalous patterns. Consider rotating tokens with broad permissions and issuing narrowly scoped tokens for specific CI/CD jobs or integrations.

Patch guidance

Administrators should consult the official Gitea release notes for version 1.26.3 or later to confirm the fix and any additional changes. Patch rollout can typically be performed with minimal service interruption on small to medium deployments; however, test in a staging environment first, particularly if custom feed integrations or monitoring scripts consume Gitea feeds. After patching, review active API tokens and regenerate any that were created with overly broad scopes, especially those used in third-party integrations or automation.

Detection guidance

Monitor Gitea API access logs for requests to feed endpoints (typically paths like `/repos/{owner}/{repo}/rss.xml` or `/repos/{owner}/{repo}/atom.xml`) originating from tokens or users that lack documented permission to access those repositories. Correlate feed endpoint requests with the scopes recorded in token audit logs. Organizations using Gitea's built-in audit features should review API token creation and usage patterns; tokens with read-only scopes being used to access feed endpoints on repositories outside their intended scope are a red flag. Additionally, monitor for unusual feed consumption patterns or repeated 200 responses to feed requests from the same token across multiple repositories.

Why prioritize this

Although this vulnerability carries a MEDIUM CVSS score, it is not listed on CISA's Known Exploited Vulnerabilities (KEV) catalog and does not pose widespread risk to publicly exposed instances. However, organizations running Gitea should still prioritize patching because the vulnerability undermines the integrity of token-based access controls—a foundational security model for API-first platforms. The fix is available and straightforward to deploy. Prioritize patching if your organization issues multiple tokens with different scopes or runs Gitea in a multi-tenant or multi-team environment where separation of repository access is a security requirement.

Risk score, explained

The CVSS 3.1 score of 4.3 (MEDIUM) reflects a low attack complexity, requirement for prior authentication, and limited scope of impact (confidentiality only). The attack vector is network-accessible and requires no user interaction. The score appropriately reflects that this is not a critical vulnerability enabling remote code execution or wide-scale compromise, but it is a meaningful information disclosure flaw in access controls that merits timely remediation in organizations with strong separation of duties or high-sensitivity repositories.

Frequently asked questions

Can this vulnerability be exploited without any authentication?

No. The attacker must possess a valid Gitea account or API token. However, the token does not need to have the repository scope that would normally grant access—that is the core vulnerability. Unauthenticated requests to feed endpoints will fail.

Does this affect our Gitea.com account or only self-hosted Gitea?

This applies to self-hosted Gitea instances. Gitea.com and other managed Gitea services maintain their own patch schedules and may already have deployed the fix. Check with your managed hosting provider for their patch status.

If we only use personal access tokens with full repository scope, are we still vulnerable?

If all tokens in your environment have broad permissions, the practical impact is lower because the scope bypass is less restrictive than the token's existing permissions. However, the vulnerability still exists and could matter if you later issue narrowly scoped tokens or if a token is compromised and its intended scope becomes important for containment.

What should we do if we discover unauthorized feed access in our logs?

Rotate the affected token(s) immediately, review commit history and code changes accessed during the unauthorized period, and search for any commits that may have exposed secrets. Update access logs or audit trails to document the incident, then proceed with patching Gitea to prevent recurrence.

This analysis is provided for informational purposes and does not constitute professional security advice. Vulnerability details and patch availability are subject to change; consult official Gitea release notes and vendor advisories for authoritative information. Organizations should conduct their own risk assessment and testing before deploying patches. SEC.co does not warrant the accuracy or completeness of third-party data referenced herein. Source: NVD (public-domain), retrieved 2026-08-12. Analysis generated by SEC.co (claude-haiku-4-5).