Vulnerability DatabaseCVE-2026-129525

CVE-2026-129525: 
Gitea vulnerability analysis and mitigation

Overview

CVE-2026-129525 is a Missing Authorization vulnerability in Gitea that allows authenticated users with restricted repository access to read data from repository units they are not permitted to access. Specifically, users with Issues-only access can read pull request data (timeline, attachments, labels, subscriptions, tracked times, and reactions) through issue sub-resource API endpoints, and vice versa. The vulnerability affects Gitea versions prior to 28.4.0, with API endpoint fixes delivered in 28.2.0 and 28.3.0, and web search/milestone page fixes in 28.4.0. It carries a CVSS v3.1 base score of 5.4 (Medium) (GitHub Advisory, Feedly).

Technical details

The root cause is CWE-862 (Missing Authorization): the /issues API route group is guarded by mustEnableIssuesOrPulls, which permits access if the caller can read either the Issues or Pull Requests unit. However, after resolving the {index} path parameter, individual handlers — including ListIssueCommentsAndTimeline, GetIssueAttachment, ListIssueAttachments, ListIssueLabels, setIssueSubscription, CheckIssueSubscription, GetIssueSubscribers, changeIssueReaction, and ListTrackedTimes — fail to call CanReadIssuesOrPulls(issue.IsPull) to verify the resolved item belongs to a unit the caller can actually read. The web route GET /{owner}/{repo}/issues/search?type=pulls and milestone pages had the same omission. The fix introduces a shared getRepoIssueByIndexForDoer loader that enforces the unit read check centrally, making it harder to omit on future endpoints (GitHub Advisory, PR #39885).

Impact

An authenticated repository member with access to only one of the Issues or Pull Requests units can read the other unit's data, including comment bodies (via timeline), attachment metadata, label associations, subscriber identities, subscription state, and tracked times. Additionally, the attacker can add or remove reactions on items in the restricted unit, and enumerate pull request titles and bodies through the issue search page. Attachment file contents, the pull request body (via the main PR endpoint), and inline review comments were not exposed, and content-writing endpoints remained denied. The vulnerability does not enable lateral movement beyond the affected repository, but it undermines fine-grained access control in private repositories (GitHub Advisory).

Exploitability

No public proof-of-concept exploit code or in-the-wild exploitation has been reported. The NVD SSVC assessment classifies exploitation as "none" and the attack as non-automatable, reflecting the requirement for an authenticated repository membership. The EPSS score is approximately 0.0017 (0.17%), indicating low probability of near-term exploitation. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog (Feedly).

Exploitation steps

  1. Obtain repository membership: The attacker must already be an authenticated member of the target private Gitea repository with access to the Issues unit but not the Pull Requests unit (e.g., via a team configured with only the Issues permission).
  2. Identify pull request indices: Use the repository's issue search web route (GET /{owner}/{repo}/issues/search?type=pulls) or milestone pages to enumerate pull request titles and bodies, which are returned without a unit check.
  3. Query issue sub-resource API endpoints: Using the attacker's API token, send requests to endpoints such as GET /repos/{owner}/{repo}/issues/{index}/timeline, /labels, /subscriptions, /attachments, and /times, substituting a known pull request index for {index}.
  4. Extract restricted data: The API returns pull request comment bodies (via timeline), attachment metadata, label associations, subscriber identities, and tracked times — data the attacker should not be able to access.
  5. Manipulate reactions: Optionally, POST or DELETE to /repos/{owner}/{repo}/issues/{index}/reactions to add or remove reactions on the pull request, confirming write-side access bypass as well (GitHub Advisory, PR #39885).

Indicators of compromise

  • Network/API Logs: Authenticated API requests from a user account to /repos/{owner}/{repo}/issues/{index}/timeline, /labels, /subscriptions, /attachments, or /times where {index} corresponds to a pull request index, originating from a user whose team has only Issues access.
  • Web Access Logs: Requests to /{owner}/{repo}/issues/search?type=pulls or milestone pages from users who should not have Pull Requests unit access.
  • Behavioral: A user account making repeated cross-unit API calls (e.g., querying PR indices via issue endpoints) in a short time window, especially if the account has no legitimate reason to access pull request data.
  • Reaction Events: Unexpected reaction additions or removals (POST/DELETE to /issues/{index}/reactions) on pull requests by users with Issues-only permissions.

Mitigation and workarounds

Gitea has released fixes across multiple versions: API endpoint fixes are included in 28.2.0 (PR #39839 backport) and 28.3.0 (PR #39885 backport), while the web issue search and milestone page fixes are included in 28.4.0. Administrators should upgrade to Gitea 28.4.0 or later to ensure all affected endpoints are patched. No configuration-based workaround is available; the only remediation is upgrading to a patched release. Repositories where fine-grained Issues/Pull Requests unit access control is not used are not meaningfully affected (GitHub Advisory, Gitea Blog).

Community reactions

The vulnerability was reported by multiple independent researchers (hexcraft-labs, d3do-23, N0K0, HexDump0, 123abab123789) and coordinated through the Gitea security advisory process. The Gitea maintainers consolidated several duplicate reports under this advisory and credited the reporters accordingly. The NixOS/nixpkgs project tracked the issue and opened packaging update tickets referencing the affected versions (GitHub Advisory).

Additional resources


Source: This report was generated using AI

Related Gitea vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-8r27-mm5g-38wwHIGH7.5
  • Gitea logoGitea
  • docker-scout-cli-plugin
NoNoDec 01, 2026
CVE-2026-140009HIGH7.5
  • JavaScript logoJavaScript
  • homepage-2
NoYesNov 30, 2026
CVE-2026-73504MEDIUM5.5
  • Java logoJava
  • flyway-fips
NoYesNov 18, 2026
CVE-2026-129525MEDIUM5.4
  • Gitea logoGitea
  • gitea
NoYesNov 15, 2026
CVE-2026-129341MEDIUM5.4
  • Gitea logoGitea
  • cpe:2.3:a:gitea:gitea
NoYesNov 15, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management