Gitea versions prior to 1.27.0 have a vulnerability where personal access tokens (PATs) or OAuth2 tokens without the required 'repository' scope can bypass scope enforcement on the repository home page route (GET /{owner}/{repo}). This allows unauthorized tokens to access private repository content such as the rendered README, file tree, description, language stats, license, and latest release information. Other repository content routes correctly enforce token scope restrictions, but the repository home page route lacks this check, leading to private data disclosure.
Gitea versions prior to 1.27.0 have a vulnerability where a public-only repository token with write permissions can update private pull request head branches via a public base repository route. This occurs because the public-only restriction is checked only against the public base repository, not the private head repository, allowing unauthorized updates to private branches. The issue is tracked as CVE-2026-58443 and has a high CVSS score of 9.6.
Gitea versions prior to 1.27.0 contain a server-side request forgery (SSRF) vulnerability in the repository migration feature. The vulnerability arises because the URL validation logic incorrectly accepts hostnames that resolve to multiple IP addresses if any one of those IPs is allowed, even if others are internal or blocked. This allows an authenticated low-privilege user to bypass restrictions and cause Gitea to connect to internal-only Git services, importing their contents into an attacker-controlled repository.
Gitea's restore-repo CLI command has a Server-Side Request Forgery (SSRF) vulnerability due to improper validation of the Head.CloneURL field in pull_request.yml during repository restoration. This allows an attacker to cause the Gitea server to fetch from an attacker-controlled URL or disclose local git repositories via file:// URLs. The issue arises because the safety check that should validate URLs is disabled by passing an empty base URL, making the check ineffective. This vulnerability affects versions prior to 1.27.0 and is fixed in version 1.27.0.
Gitea contains an authorization bypass vulnerability in its API fork endpoint that allows organization members to create repositories despite restrictions. The API endpoint for forking repositories into organizations only checks if the user is a member, not whether they have permission to create repositories. This contrasts with the web UI and other API endpoints that enforce stricter repository creation permissions. The issue affects Gitea versions prior to 1.26.0. Exploiting this flaw allows unauthorized repository creation within organizations, potentially increasing attack surface depending on organizational configurations.
Gitea versions prior to 1.27.0 contain a privilege escalation vulnerability in the API endpoint for creating Personal Access Tokens. An attacker with a restricted token can bypass authentication middleware by presenting the token in a Basic auth format, causing the system to incorrectly treat the token as password-based authentication. This flaw allows the attacker to create new tokens with any requested scope, including full 'all' scope, without knowing the account password. The vulnerability is fixed in version 1.27.0.
Gitea versions prior to 1.27.0 have a vulnerability where unauthenticated requests with the query parameter '?go-get=1' bypass normal authentication and authorization checks. This causes Gitea to respond with HTTP 200 and metadata revealing private repository existence, clone URLs, and default branch names. This allows attackers to confirm and enumerate private repositories without credentials.
Gitea versions prior to 1.27.0 contain a vulnerability in the issue and comment attachment update functionality where attachments can be re-linked across repositories without proper validation. An authenticated attacker who can edit issues or comments in a repository they can read can re-link a known victim attachment UUID to their repository, causing subsequent access checks to use the attacker's repository authorization context. This allows disclosure of private attachments if the attacker has obtained the UUID by other means. The issue is fixed in version 1.27.0.
Gitea versions prior to 1.27.0 have a blind Server-Side Request Forgery (SSRF) vulnerability in the OAuth2 avatar synchronization feature when the setting UPDATE_AVATAR is enabled. A low-privileged OAuth2/OIDC user who can control their picture claim can cause the Gitea server to make arbitrary HTTP GET requests to internal or external network addresses without validation. This can lead to internal network probing or interaction with localhost-only or private services. The vulnerability is blind because non-image responses are rejected, but if an internal service returns a valid image, it may be stored as the attacker's avatar. A fix is available in version 1.27.0.
Gitea versions prior to 1.27.0 contain a vulnerability in the OAuth token introspection endpoint where a client can obtain metadata about tokens issued to other clients. This violates RFC 7662 section 4, which requires limiting token introspection responses to the token's intended audience. The flaw arises because the introspection handler does not verify that the introspecting client matches the token's issuing client, allowing unauthorized disclosure of token metadata. A fix is available in version 1.27.0.
Gitea versions prior to 1.27.0 contain a vulnerability in the Remember-Me token validation logic. When a stolen Remember-Me token is used by an attacker, Gitea rotates the token hash but does not invalidate the attacker's session after detecting a hash mismatch. This allows the attacker to maintain persistent access to the victim's account indefinitely. The issue is fixed in version 1.27.0.
Gitea versions prior to 1.27.0 have a vulnerability where draft release attachments can be accessed without proper authorization via web endpoints. While API endpoints enforce access control requiring write permissions to view draft releases, the web attachment endpoints do not check if the release is a draft, allowing anyone with the attachment UUID to download the file. This leads to unauthorized disclosure of draft release attachments.
Gitea versions prior to 1.27.0 contain a vulnerability in the web release edit form that allows users with repository write permissions to rename release attachments to filenames with forbidden extensions, bypassing the configured allowlist. This occurs because the web handler EditReleasePost updates attachment names without verifying the file extension against the allowed types, unlike the API endpoint which correctly enforces this check. The issue was fixed 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 contain a vulnerability where the 'official' approval flag on pull request reviews is not re-evaluated when the PR's target branch is changed. This allows an attacker with write access to obtain an official approval on a PR targeting an unprotected branch and then retarget the PR to a protected branch, bypassing branch protection rules and merging without legitimate maintainer approval.
Gitea versions prior to 1.27.0 contain a vulnerability where revoked users can still access metadata of private repositories and private issue titles via two API endpoints: /api/v1/user/starred and /api/v1/user/times. This occurs because these endpoints do not properly re-check repository access permissions at output time, allowing former collaborators to enumerate private repos they had starred and read private issue titles indefinitely after access revocation. The leaked information is limited to metadata and does not include repository content or comment bodies.
Gitea versions prior to 1.27.0 contain a vulnerability in repository migration where the URL validation is bypassed due to Git HTTP redirects. An authenticated low-privileged user can submit a repository URL that initially passes validation but redirects to internal or blocked Git endpoints, enabling internal repository exfiltration. This affects migration and mirror fetch operations, potentially exposing sensitive internal repositories and secrets. The issue is fixed in version 1.27.0.
Gitea versions prior to 1.23.0-rc0 contain a vulnerability that allows attackers to add attachments with forbidden file extensions by manipulating attachment names through the attachment API. This flaw was fixed in version 1.23.0-rc0. The vulnerability has a high severity with a CVSS score of 8.2.