code.gitea.io/gitea
Go104 known CVEs affecting this package
Aggregated from OSV, GitHub Security Advisories, NVD, and vendor advisories. Each CVE links to its full detail page with vendor advisories, patches, fixed versions, and remediation guidance.
CVEs affecting code.gitea.io/giteapage 2 of 3
- CVE-2026-24791HIGHCVSS 8.1EG 8.1✓ Fixed in 1.26.22026-06-17
Gitea: Public-only tokens bypass private-resource restrictions on `/api/v1/user` self routes ## Summary Many authenticated self routes under `/api/v1/user/...` do not enforce the `public-only` token restriction. As a result, a token or O…
- CVE-2026-25038HIGHCVSS 7.5EG 7.5✓ Fixed in 1.26.32026-07-03
Gitea 1.26.2 allows unauthorized users to access labels of private organizations.
- CVE-2026-25714MEDIUMCVSS 4.3EG 4.3✓ Fixed in 1.26.22026-06-16
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.
- CVE-2026-25779MEDIUMCVSS 6.1EG 6.1✓ Fixed in 1.26.02026-06-17
Gitea versions up to and including 1.25.4 allow redirect bypasses through raw or percent-encoded backslashes in redirect_to values.
- CVE-2026-26231HIGHCVSS 8.5EG 8.5✓ Fixed in 1.26.22026-06-16
Gitea versions up to and including 1.26.1 allow the Allow edits from maintainers permission path to authorize commits to repositories that the user can read but should not be able to write.
- CVE-2026-27761MEDIUMCVSS 4.3EG 4.3✓ Fixed in 1.26.32026-07-03
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.
- CVE-2026-27771HIGHCVSS 8.2EG 8.4✓ Fixed in 1.26.22026-07-03
Gitea versions up to and including 1.26.1 have insufficient permission checks for Composer package source links, which can expose private or internal package source information.
- CVE-2026-27775HIGHCVSS 8.8EG 8.8✓ Fixed in 1.26.32026-07-03
Gitea 1.25.5 caches a branch-specific write-permission result across multiple refs in one pre-receive hook session, allowing a per-branch maintainer-edit grant to be reused for other refs and escalate to full repository write access.
- CVE-2026-27783MEDIUMCVSS 4.3EG 4.3✓ Fixed in 1.26.22026-06-16
Gitea versions up to and including 1.26.1 do not enforce repository-unit authorization on issue-template API endpoints.
- CVE-2026-28699HIGHCVSS 8.1EG 8.1✓ Fixed in 1.26.22026-06-16
Gitea versions up to and including 1.26.1 allow OAuth2 access token scope enforcement to be bypassed through HTTP Basic authentication.
- CVE-2026-28737HIGHCVSS 8.7EG 8.7✓ Fixed in 1.26.02026-06-17
Gitea versions from 1.25.0 before 1.26.0 allow stored cross-site scripting through the extensionsRequired field in glTF files rendered by the 3D file viewer.
- CVE-2026-28740HIGHCVSS 7.1EG 7.1✓ Fixed in 1.26.32026-07-03
Gitea versions up to and including 1.26.2 allow Git LFS object reuse to authorize private source objects for users who have repository access but lack Code-unit access.
- CVE-2026-28744HIGHCVSS 8.1EG 8.1✓ Fixed in 1.26.22026-06-16
Gitea versions up to and including 1.26.1 allow Git smart HTTP requests authenticated with bearer tokens to bypass repository token scope checks.
- CVE-2026-42931MEDIUMCVSS 6.5EG 6.5✓ Fixed in 1.27.02026-07-21
Gitea: Denial of Service via Unbounded io.ReadAll in NPM Package Tag Endpoint ### Summary An unbounded `io.ReadAll(ctx.Req.Body)` call in the NPM package tag API endpoint allows any authenticated user to crash the Gitea server by sending …
- CVE-2026-50105MEDIUMCVSS 4.3EG 4.3✓ Fixed in 1.27.02026-07-21
Gitea: RSS/Atom feed handlers bypass API-token scope & public-only confinement (incomplete fix of #37698) ### Summary Gitea's RSS/Atom feed handlers accept API-token Basic auth but perform **no token-scope or public-only enforcement**. A…
- CVE-2026-54481HIGHCVSS 7.5EG 7.5✓ Fixed in 1.27.02026-07-21
Gitea: Internal API HTTP client hardcodes InsecureSkipVerify:true with no config override Summary Gitea's internal API HTTP client (modules/private/internal.go) hardcodes TLSClientConfig.InsecureSkipVerify = true with no configuration ov…
- CVE-2026-55982MEDIUMEG 0.0✓ Fixed in 1.27.02026-07-21
Gitea: OIDC userinfo Endpoint Returns Identity Claims Without Enforcing API Token Scopes ### Summary The OIDC userinfo endpoint (`GET /login/oauth/userinfo`) accepts Gitea API tokens as bearer credentials but does not enforce API token s…
- CVE-2026-55984LOWCVSS 2.7EG 2.7✓ Fixed in 1.27.02026-07-21
Gitea: Null Pointer Dereference in AddTime API Causes Authenticated Denial of Service ### Summary The AddTime API handler continues execution after an error returned by `GetUserByName()`. When a repository administrator specifies a non-…
- CVE-2026-55987HIGHCVSS 8.1EG 8.1✓ Fixed in 1.27.02026-07-21
Gitea: OAuth2 sign-in reactivates an administrator-deactivated account on auth sources without refresh tokens (incomplete fix of #38009) ## Description Gitea's OAuth2 sign-in callback reactivates a deactivated user account (`IsActive=fal…
- CVE-2026-56443MEDIUMCVSS 4.3EG 4.3✓ Fixed in 1.27.02026-07-21
Gitea: Token public-only scope bypassed on Limited-visibility owners (Repository + Package categories) — residual after CVE-2026-25714 / PR #37118 ## Summary After [PR #37118](https://github.com/go-gitea/gitea/pull/37118) / **CVE-2026-…
- CVE-2026-56654HIGHEG 0.0✓ Fixed in 1.27.02026-07-21
Gitea: Privilege Escalation via Access Token Scope Escalation in API Gitea's API endpoint for creating Personal Access Tokens (`POST /users/{username}/tokens`) is protected by a middleware (`reqBasicOrRevProxyAuth`) that is intended to re…
- CVE-2026-56657MEDIUMEG 0.0✓ Fixed in 1.27.02026-07-21
Gitea SSH Key Parser Denial of Service Gitea's SSH key ingestion endpoint accepts keys in RFC 4716 (SSH2) format and normalises them before storage. The normalisation function contains an O(N²) string concatenation loop with no input siz…
- CVE-2026-56750CRITICALEG 0.0✓ Fixed in 1.27.02026-07-21
Gitea Remember-Me Token Theft Not Invalidating Attacker Session The vulnerability is in the Remember-Me (gitea_incredible) token validation logic, specifically when handling a compromised token (hash mismatch). The vulnerable function is…
- CVE-2026-56755HIGHEG 0.0✓ Fixed in 1.27.02026-07-21
Gitea: Denial of Service (CPU & Memory Exhaustion) via O(N^2) String Concatenation in Debian Package Upload Gitea's Debian package registry parser contains an unbounded decompression vulnerability in [ParseControlFile](https://github.com/…
- CVE-2026-57886MEDIUMCVSS 5.9EG 5.9✓ Fixed in 1.27.02026-07-21
Gitea: Cross-repository issue/comment attachment re-linking can expose private attachment content ## Summary Gitea's issue and comment attachment update paths accept attachment UUIDs without verifying that each attachment belongs to the …
- CVE-2026-57894HIGHCVSS 8.5EG 8.5✓ Fixed in 1.27.02026-07-21
Gitea: Repository Migration Follows Git HTTP Redirects After URL Allow/Block Validation, Enabling Internal Git Repository Exfiltration # Repository Migration Follows Git HTTP Redirects After URL Allow/Block Validation, Enabling Internal G…
- CVE-2026-57897MEDIUMCVSS 6.5EG 6.5✓ Fixed in 1.27.02026-07-21
Gitea: Cross-Repo Information Disclosure via Org-Level Actions Run/Job APIs **Author:** Prakhar Porwal **Date:** 2026-05-24 **Target:** Gitea (self-hosted Git service) **Branch tested:** `main` @ `b7e95cc48c` (development build, go1.26.3)…
- CVE-2026-58314HIGHCVSS 7.7EG 7.7✓ Fixed in 1.27.02026-07-21
Gitea: Two SSRF findings | --- | --- | | Versions tested | `gitea/gitea:1.26.2` (digest `sha256:7d13848af12645600a5f9d93ee2560daa9c6fa6b5b859b7bff3a5e1c0b661031`); `gitea/gitea:latest` resolves to the same digest at time of writing | | So…
- CVE-2026-58418MEDIUMCVSS 6.5EG 6.5✓ Fixed in 1.26.42026-07-03
SSRF via HTTP Redirect in Repository Migration
- CVE-2026-58419HIGHCVSS 7.5EG 7.5✓ Fixed in 1.26.42026-07-03
Notification API leaks private issue metadata after access revocation
- CVE-2026-58421HIGHCVSS 7.5EG 7.5✓ Fixed in 1.26.42026-07-03
Unauthenticated ReDoS via CODEOWNERS pattern matching allows denial of service
- CVE-2026-58422CRITICALCVSS 9.8EG 9.8✓ Fixed in 1.26.42026-07-03
Improper authorization on OAuth sign-in callback silently re-enables administrator-disabled accounts
- CVE-2026-58423HIGHCVSS 7.7EG 7.7✓ Fixed in 1.26.32026-07-03
LFS authentication bypass via malformed SSH sub-verb allows unauthorized read access to private repositories
- CVE-2026-58424HIGHCVSS 8.9EG 8.9✓ Fixed in 1.26.32026-07-03
Permanent Fork PR Workflow Approval Gate Bypass
- CVE-2026-58425MEDIUMCVSS 4.3EG 4.3✓ Fixed in 1.27.02026-07-21
Gitea: OAuth token introspection returns metadata of tokens issued to other clients (RFC 7662 section 4 violation) ## Live reproduction against Gitea 1.26.1 Setup: Gitea 1.26.1 docker stack with two users (`admin` and `victim`) and two O…
- CVE-2026-58426CRITICALCVSS 9.6EG 9.6✓ Fixed in 1.26.22026-07-03
Gitea Actions Artifacts V4 signed URL HMAC ambiguity allows cross-repository artifact read and cross-task upload-state write
- CVE-2026-58428MEDIUMCVSS 6.5EG 6.5✓ Fixed in 1.27.02026-07-21
Gitea: Release attachment extension allowlist bypass via web release edit form (variant of CVE-2025-68939) ## Summary The web handler `EditReleasePost` (`routers/web/repo/release.go`) reads form fields with prefix `attachment-edit-{uuid}…
- CVE-2026-58429MEDIUMCVSS 4.9EG 4.9✓ Fixed in 1.27.02026-07-21
Gitea: Public-Only Personal access tokens scope bypass in Organization and Permission Endpoints ### Summary A personal access token restricted with the public-only scope can still retrieve private organization membership and organization …
- CVE-2026-58432MEDIUMCVSS 5.9EG 5.9✓ Fixed in 1.27.02026-07-21
Gitea: draft release attachment disclosure via missing web authorization ### Summary Gitea's draft-release access control is enforced only on the API release endpoints (`/api/v1/repos/{owner}/{repo}/releases/{id}` and its `/assets/...` s…
- CVE-2026-58434LOWEG 0.0✓ Fixed in 1.27.02026-07-21
Gitea: Private Repository Metadata Remains Accessible After Access Revocation ### Summary A user who previously had access to a private repository can continue to obtain repository metadata through `GET /api/v1/user/starred` after their …
- CVE-2026-58435MEDIUMCVSS 5.4EG 5.4✓ Fixed in 1.27.02026-07-21
Gitea LFS Deploy-Key Privilege Escalation ## Vulnerability Header | Field | Value | | ------------------- | ----------------------------------------------------------- |…
- CVE-2026-58436HIGHEG 0.0✓ Fixed in 1.27.02026-07-21
Gitea: ParseAcceptLanguage quadratic-time DoS via Locale middleware on unauthenticated requests ### Summary The Locale middleware that runs in front of every unauthenticated request calls `golang.org/x/text/language.ParseAcceptLanguage` …
- CVE-2026-58437HIGHCVSS 7.1EG 7.1✓ Fixed in 1.27.02026-07-21
Gitea: Repository Visibility Manipulation via Git Push Options ### Repository Visibility Manipulation via Git Push Options | Field | Value | |-------|-------| | **Affected File** | `routers/private/hook_post_receive.go` | | **Affected Fu…
- CVE-2026-58441MEDIUMCVSS 6.3EG 6.3✓ Fixed in 1.27.02026-07-21
Gitea: SSRF in restore-repo via unsanitized pull_request.yml Head.CloneURL ### Summary Gitea's `restore-repo` CLI command restores a repository from a dump directory/archive. When parsing `pull_request.yml` from that dump, the `Head.Clone…
- CVE-2026-58442MEDIUMCVSS 6.5EG 6.5✓ Fixed in 1.27.02026-07-21
Gitea: Repository migration SSRF via multi-answer DNS allow-list bypass ### Summary Gitea's repository migration URL validation can be bypassed when a migration hostname resolves to multiple IP addresses. The validation logic accepts the…
- CVE-2026-58443CRITICALCVSS 9.6EG 9.6✓ Fixed in 1.27.02026-07-21
Gitea: Public-only repository tokens can update private PR head branches ### Summary Gitea allows a `public-only,write:repository` token to update a private pull request head branch through a public base repository route. The vulnerable …
- CVE-2026-58444MEDIUMCVSS 4.3EG 4.3✓ Fixed in 1.27.02026-07-21
Gitea: Personal access token scope enforcement bypass on the repository home page (`GET /{owner}/{repo}`) discloses private repository contents ### Summary A personal access token (PAT) or OAuth2 token that does **not** carry the `reposit…
- CVE-2026-58445LOWCVSS 2.7EG 2.7✓ Fixed in 1.27.02026-07-21
Gitea: Cross-repository label-ID enumeration oracle via unscoped DeleteIssueLabel API ## Summary The API endpoint `DELETE /repos/{owner}/{repo}/issues/{index}/labels/{id}` loads the label by ID with a **global, unscoped** lookup and neve…
- CVE-2026-58507MEDIUMCVSS 5.3EG 5.3✓ Fixed in 1.27.02026-07-21
Gitea: Private Repository Existence Disclosure via go-get Meta Endpoint | Field | Value | |-------|-------| | **Affected File** | `routers/web/repo/githttp.go`, `services/context/repo.go` | | **Affected Functions** | `httpBase()`, `EarlyR…
- CVE-2026-58510MEDIUMCVSS 4.3EG 4.3✓ Fixed in 1.27.02026-07-21
Gitea: GHSA-8fwc-qjw5-rvgp ClearRepoWatches fix not applied to API EditRepo path — sister code path retains stale watches on public->private ## Summary GHSA-8fwc-qjw5-rvgp ("Gitea may send release notification emails for private reposi…
Check whether code.gitea.io/gitea is used in your infrastructure
EchelonGraph scans your cloud and SBOMs to map every package to your actual deployments. See blast radius for code.gitea.io/gitea CVEs against the assets you own.
Start Free Scan →