CVE-2026-25714: Gitea Token Leakage via Organization API – Patch Guidance
Gitea, a self-hosted Git service, has a vulnerability in how it filters access tokens for organization-related API calls. Even though Gitea released a fix for a previous token-leakage issue (CVE-2025-68941), this new vulnerability reveals that the fix was incomplete. An authenticated user can still see tokens they shouldn't have access to through the organization API, potentially exposing sensitive authentication credentials.
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-862
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-07-03 / 2026-07-07
NVD description (verbatim)
Gitea versions up to and including 1.26.1 do not apply public-only token filtering consistently to the user organization API, leaving an incomplete fix for CVE-2025-68941.
5 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-25714 stems from insufficient token filtering logic in Gitea's user organization API endpoints. The vulnerability affects Gitea versions up to and including 1.26.1. The root cause is a bypass of public-only token restrictions that were intended to be enforced as part of the prior CVE-2025-68941 remediation. An authenticated user with API access can craft requests to organization endpoints that do not properly validate token visibility constraints, resulting in disclosure of private or restricted tokens that should have been filtered. This is classified as an authorization bypass (CWE-862) with a CVSS v3.1 score of 4.3 (Medium severity), reflecting limited impact but exploitable by low-privileged authenticated users.
Business impact
Token exposure in a self-hosted Git platform poses operational risk proportional to how widely Gitea is used within an organization. Compromised tokens can grant attackers persistent API access, enable lateral movement across repositories, trigger unauthorized CI/CD pipelines, or facilitate supply-chain attacks if the Git instance hosts critical source code. The impact is primarily to confidentiality; integrity and availability are not directly affected. For organizations relying on Gitea as a central development platform, this represents a credential hygiene concern that could amplify the blast radius of other security incidents.
Affected systems
Gitea versions up to and including 1.26.1 are affected. The vulnerability is specific to the user organization API; other Gitea APIs and functionality are not described as impacted. Self-hosted Gitea instances in any environment—on-premises, cloud, or hybrid—are in scope. The vulnerability requires an authenticated attacker with valid API credentials, so it does not affect unauthenticated access.
Exploitability
Exploitability is straightforward for users with valid Gitea accounts and API token access. No complex exploitation techniques, network positioning, or user interaction is required. An attacker need only issue crafted API calls to organization endpoints to enumerate and retrieve tokens they are not authorized to see. The low barrier to exploitation and the presence of a prior, incomplete fix suggest this issue may have been discovered through security testing or fuzzing of the remediation for CVE-2025-68941. However, the vulnerability is not currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.
Remediation
Organizations should upgrade Gitea to a version that fully addresses token filtering in the user organization API. Verify the patch version against Gitea's official security advisories and release notes. In the interim, restrict API access using network controls or authentication policies, and audit token usage and permissions to identify any anomalies. Review logs for organization API calls that may indicate exploitation. Additionally, consider rotating high-value tokens or those used in critical workflows.
Patch guidance
Check Gitea's official security advisories and GitHub release notes for a patched version that resolves token filtering across all organization API endpoints. Apply the patch during a scheduled maintenance window; upgrades typically require a brief service restart. Before patching production, validate the fix in a non-production environment. Verify that token filtering is now enforced consistently and that previously exposed tokens are no longer accessible via the organization API.
Detection guidance
Monitor Gitea API logs for unusual patterns in organization endpoint requests, particularly from accounts with limited permissions accessing organization-level resources. Alert on repeated 200 (success) responses to organization API calls that retrieve token data. Review access logs for sequences of calls that suggest token enumeration. Conduct periodic audits of token grants and verify that only intended principals can view each token. If you maintain detailed API audit logs, search for requests to organization endpoints with filter parameters or pagination that might indicate token harvesting.
Why prioritize this
This vulnerability merits prompt but not emergency attention. The Medium CVSS score (4.3) reflects that exploitation requires authentication and yields limited confidentiality impact. However, it is a direct bypass of a prior security fix, indicating either incomplete testing or a subtle implementation flaw. Organizations with high-value source code or sensitive CI/CD pipelines should prioritize patching sooner; those using Gitea for less critical workloads may schedule patching in the next regular maintenance cycle. The vulnerability is not yet in active exploitation (not on KEV), which provides a window for orderly remediation.
Risk score, explained
The CVSS v3.1 score of 4.3 (Medium) reflects: Network-accessible API (AV:N) requiring only Low privilege and no user interaction (PR:L, UI:N); a single scope (S:U); and impact limited to Confidentiality (C:L). Integrity and Availability are not affected. The score appropriately penalizes the authorization bypass nature of the flaw but recognizes that exploitation requires valid authentication and yields token disclosure rather than data destruction or service disruption.
Frequently asked questions
Is this vulnerability actively being exploited?
CVE-2026-25714 is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog as of the publication date. However, the vulnerability is straightforward to exploit for authenticated users, so proactive patching is advised rather than waiting for public exploit code.
Does this affect only newly-created tokens or all tokens?
The vulnerability affects the filtering logic in the organization API endpoint, so any token stored in Gitea and returned by that endpoint may be exposed, regardless of when it was created. Tokens created before or after the CVE-2025-68941 fix are both at risk if they fall into a category that should have been filtered.
What should we do if we suspect our Gitea tokens have been exposed?
Immediately review audit logs for unusual organization API access. Rotate or revoke high-value tokens and regenerate new ones with minimal required scopes. Update any CI/CD pipelines or integrations that rely on exposed tokens. Then upgrade Gitea to a patched version to prevent future exposure.
Why is this being described as an incomplete fix for CVE-2025-68941?
The prior CVE-2025-68941 addressed token filtering in another context, but the developers did not apply the same filtering rules comprehensively to the organization API. This new vulnerability reveals that endpoint was overlooked during the initial remediation, underscoring the importance of thorough code review and security testing across all affected code paths.
This analysis is provided for informational and educational purposes. No exploit code or weaponized proof-of-concept is included. Vendors, products, patch version numbers, and KEV status are as reported in the advisory data; verify all technical details against official Gitea security advisories and release notes before deploying patches. SEC.co does not warrant the completeness or accuracy of this summary and recommends consulting Gitea's official documentation and your organization's security team for final remediation decisions. Source: NVD (public-domain), retrieved 2026-08-12. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- CVE-2022-42479MEDIUMMissing Authorization in TemplateHouse Soledad – MEDIUM Severity Access Control Bypass
- CVE-2022-45813MEDIUMBeRocket Advanced AJAX Product Filters Missing Authorization Flaw
- CVE-2023-25969MEDIUMMissing Authorization in ThemeHunk Contact Form Plugin
- CVE-2023-32959MEDIUMMetroStore Missing Authorization Vulnerability – Patch Guide
- CVE-2024-24709MEDIUMShareaholic Missing Authorization Vulnerability – Update Required
- CVE-2024-31435MEDIUMMissing Authorization in Inisev Social Media & Share Icons Plugin—Patch Guidance
- CVE-2024-33685MEDIUMMissing Authorization in Jegstudio Startupzy 1.1.1 – MEDIUM Severity Vulnerability
- CVE-2024-33909MEDIUMMissing Authorization in Avirtum iPages Flipbook – CVSS 5.3 Patch Guide