Gitea versions prior to 1.27.0 contain a vulnerability where a fork pull-request Actions workflow can read a third private repository if that repository trusts the fork's base repository owner as a collaborative owner. This occurs due to a missing permission guard against fork pull-requests in the collaborative-owner branch, resulting in unauthorized read access. The vulnerability leads to a confidentiality breach exposing the full source code of a private repository to an untrusted fork PR author. A patch is available to address this issue.
Gitea versions prior to 1.27.0 contain a server-side request forgery (SSRF) vulnerability in migration asset downloads and OAuth avatar updates. This occurs because certain code paths use unfiltered http.Get() calls that bypass the hostmatcher protection, allowing attackers with migration permissions to access internal services, cloud metadata endpoints, and local files via file:// URLs. The vulnerability enables theft of sensitive data such as cloud instance metadata and local configuration files containing credentials. A fix is available in version 1.27.0.
Gitea versions prior to 1.27.0 have a vulnerability where the 'public-only' API token restriction is not properly enforced on team API routes. This flaw allows a 'public-only' token, which should only access public repositories and organizations, to retrieve private team repository metadata and private team activity feed entries. The issue arises because the organization visibility check is bypassed due to missing context loading, and repository-level filtering is not applied. This vulnerability is confirmed in Gitea 1.26.2 and nightly builds and is fixed in version 1.27.0.
An incomplete fix in Gitea allows any authenticated user to enumerate all members of a private organization via the /members API endpoint. This issue affects versions up to and including 1.26.4 and the main branch. The vulnerability arises because the ListMembers function lacks a proper visibility check, exposing private member information to unauthorized users. A fix is available in version 1.27.0.
Gitea versions prior to 1.27.0 have a denial of service vulnerability in the SSH key ingestion endpoint. The flaw is due to an O(N²) string concatenation loop in the SSH2 key normalization function that lacks input size limits. An authenticated user can submit a maliciously large SSH2 formatted key, causing excessive CPU and memory usage that may take the server offline. This vulnerability is identified as CVE-2026-56657 and is classified as a moderate severity issue. A patch is available to address this vulnerability.
Gitea versions up to 1.26.x contain a local file inclusion vulnerability in the restore-repo command. This flaw allows an attacker with operator-level access to supply a crafted archive containing a release.yml file with file:// URIs. The server reads arbitrary files from its filesystem and stores their contents as release attachments, which can then be retrieved via the Gitea API. Sensitive files such as configuration files, private keys, and credentials can be exfiltrated. The vulnerability is fixed in version 1.27.0.
A vulnerability in Gitea versions prior to 1.27.0 allows unauthorized users with API access tokens to confirm membership of users in private organizations via a REST API endpoint. This membership information is otherwise hidden in the web interface for private organizations. The flaw is fixed in version 1.27.0.
Gitea versions prior to 1.27.0 contain a cross-repository Insecure Direct Object Reference (IDOR) vulnerability in the issue dependency removal functionality. The RemoveDependency function lacks proper permission checks when deleting dependencies linked to issues in private repositories, allowing an attacker with write access to issues in one repository to remove dependencies and post comments on issues in private repositories they cannot access. This vulnerability does not disclose repository content but allows unauthorized modification of issue dependencies and injection of attacker-authored comments across repository boundaries. A fix is available in version 1.27.0.
CVE-2026-56443 is a vulnerability in Gitea versions prior to 1.27.0 where the 'public-only' personal access token (PAT) scope can be bypassed for repositories and packages owned by users with Limited visibility. Despite a prior fix unifying public-only token filtering, the Repository and Package scope categories incorrectly check visibility, allowing tokens with the public-only scope to access content beyond intended anonymous reach. This affects API v1 repository endpoints, package registries, and web download endpoints, enabling unauthorized read access to limited-visibility repositories and packages.
Gitea versions prior to 1.27.0 have a vulnerability where webhooks created by a collaborator with admin permissions on a private repository continue to fire even after that collaborator's access is revoked. The webhook delivery mechanism does not re-validate the creator's current repository access, allowing the former collaborator to receive ongoing payloads of private repository events. This results in unauthorized data exposure beyond the collaborator's revoked access.