Skip to content

← Public intelligence

Go package

code.gitea.io/gitea

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

105 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Medium, CVSS 5.3GoPublished

    Gitea's /api/v1/user endpoint has different responses for failed authentication depending on whether a username exists

    CVE-2025-69413 · GHSA-pc73-rj2c-wvf9

    Affected
    • Go code.gitea.io/gitea < 1.25.2
    Fixed in
    1.25.2· Vendor fix available
    Issue
    In Gitea before 1.25.2, /api/v1/user has different responses for failed authentication depending on whether a username exists.

    Recommended action: Upgrade to 1.25.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  2. Medium, CVSS 5.8GoPublished

    Gitea: anonymous user can visit private user's project

    CVE-2025-68945 · GHSA-7xq4-mwcp-q8fx

    Affected
    • Go code.gitea.io/gitea < 1.21.2
    Fixed in
    1.21.2· Vendor fix available
    Issue
    In Gitea before 1.21.2, an anonymous user can visit a private user's project.

    Recommended action: Upgrade to 1.21.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  3. Medium, CVSS 5.0GoPublished

    Gitea sometimes mishandles propagation of token scope for access control within one of its own package registries

    CVE-2025-68944 · GHSA-f85h-c7m6-cfpm

    Affected
    • Go code.gitea.io/gitea < 1.22.2
    Fixed in
    1.22.2· Vendor fix available
    Issue
    Gitea before 1.22.2 sometimes mishandles the propagation of token scope for access control within one of its own package registries.

    Recommended action: Upgrade to 1.22.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  4. Medium, CVSS 5.3GoPublished

    Gitea inadvertently discloses users' login times by allowing (for example) the lastlogintime explore/users sort order

    CVE-2025-68943 · GHSA-jhx5-4vr4-f327

    Affected
    • Go code.gitea.io/gitea < 1.21.8
    Fixed in
    1.21.8· Vendor fix available
    Issue
    Gitea before 1.21.8 inadvertently discloses users' login times by allowing (for example) the lastlogintime explore/users sort order.

    Recommended action: Upgrade to 1.21.8 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  5. Medium, CVSS 5.4GoPublished

    Gitea vulnerable to Cross-site Scripting

    CVE-2025-68946 · GHSA-hq57-c72x-4774

    Affected
    • Go code.gitea.io/gitea < 1.20.1
    Fixed in
    1.20.1· Vendor fix available
    Issue
    In Gitea before 1.20.1, a forbidden URL scheme such as javascript: can be used for a link, aka XSS.

    Recommended action: Upgrade to 1.20.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  6. Medium, CVSS 5.4GoPublished

    Gitea allows XSS because the search input box (for creating tags and branches) is v-html instead of v-text

    CVE-2025-68942 · GHSA-898p-hh3p-hf9r

    Affected
    • Go code.gitea.io/gitea < 1.22.2
    Fixed in
    1.22.2· Vendor fix available
    Issue
    Gitea before 1.22.2 allows XSS because the search input box (for creating tags and branches) is v-html instead of v-text.

    Recommended action: Upgrade to 1.22.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  7. High, CVSS 8.2GoAmendedPublished

    Gitea allows attackers to add attachments with forbidden file extensions

    CVE-2025-68939 · GHSA-263q-5cv3-xq9g

    Affected
    • Go code.gitea.io/gitea < 1.23.0-rc0
    Fixed in
    1.23.0-rc0· Vendor fix available
    Issue
    Gitea before 1.23.0 allows attackers to add attachments with forbidden file extensions by editing an attachment name via an attachment API.

    Recommended action: Upgrade to 1.23.0-rc0 (pre-release) or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.com (1)osv.dev (2)Source checked Evidence →
  8. Low, CVSS 3.1GoPublished

    Gitea doesn't adequately enforce branch deletion permissions after merging a pull request.

    CVE-2025-68940 · GHSA-rrcw-5rjv-vj26

    Affected
    • Go code.gitea.io/gitea < 1.22.5
    Fixed in
    1.22.5· Vendor fix available
    Issue
    In Gitea before 1.22.5, branch deletion permissions are not adequately enforced after merging a pull request.

    Recommended action: Upgrade to 1.22.5 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  9. Medium, CVSS 4.9GoPublished

    Gitea mishandles access to a private resource upon receiving an API token with scope limited to public resources

    CVE-2025-68941 · GHSA-xfq3-qj7j-4565

    Affected
    • Go code.gitea.io/gitea < 1.22.3
    Fixed in
    1.22.3· Vendor fix available
    Issue
    Gitea before 1.22.3 mishandles access to a private resource upon receiving an API token with scope limited to public resources.

    Recommended action: Upgrade to 1.22.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  10. Medium, CVSS 4.3GoPublished

    Gitea mishandles authorization for deletion of releases

    CVE-2025-68938 · GHSA-cm54-pfmc-xrwx

    Affected
    • Go code.gitea.io/gitea < 1.25.2
    Fixed in
    1.25.2· Vendor fix available
    Issue
    Gitea before 1.25.2 mishandles authorization for deletion of releases.

    Recommended action: Upgrade to 1.25.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  11. Critical, CVSS 10.0GoPublished

    Gitea Cross-site Scripting Vulnerability

    CVE-2024-6886 · GHSA-4h4p-553m-46qh

    Affected
    • Go code.gitea.io/gitea < 1.22.1
    Fixed in
    1.22.1· Vendor fix available
    Issue
    Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea Gitea Open Source Git Server allows Stored XSS.This issue affects Gitea Open Source Git Server: 1.22.0.

    Recommended action: Upgrade to 1.22.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  12. High, CVSS 7.2GoPublished

    Arbitrary Code Execution in Gitea

    CVE-2020-14144 · GHSA-3h6c-c475-jm7v

    Affected
    • Go code.gitea.io/gitea >= 1.1.0, < 1.12.6
    Fixed in
    1.12.6· Vendor fix available
    Issue
    The git hook feature in Gitea 1.1.0 through 1.12.5 allows for authenticated remote code execution.

    Recommended action: Upgrade to 1.12.6 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  13. Medium, CVSS 6.5GoPublished

    Gitea erroneous repo clones

    CVE-2022-38795 · GHSA-8j3v-68w3-3848

    Affected
    • Go code.gitea.io/gitea < 1.17.2
    Fixed in
    1.17.2· Vendor fix available
    Issue
    In Gitea through 1.17.1, repo cloning can occur in the migration function.

    Recommended action: Upgrade to 1.17.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  14. Low, CVSS 3.0GoPublished

    code.gitea.io/gitea Open Redirect vulnerability

    CVE-2023-3515 · GHSA-cf6v-9j57-v6r6

    Affected
    • Go code.gitea.io/gitea < 1.19.4
    Fixed in
    1.19.4· Vendor fix available
    Issue
    Open Redirect in GitHub repository go-gitea/gitea prior to 1.19.4. This is most likely a post-auth redirect plus it is a POST based request scenario, so less likely that can be exploited or chained with other bugs that can cause phishing or credential theft.

    Recommended action: Upgrade to 1.19.4 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  15. Medium, CVSS 6.5GoPublished

    Gitea allowed assignment of private issues

    CVE-2022-38183 · GHSA-fhv8-m4j4-cww2

    Affected
    • Go code.gitea.io/gitea < 1.16.9
    Fixed in
    1.16.9· Vendor fix available
    Issue
    In Gitea before 1.16.9, it was possible for users to add existing issues to projects. Due to improper access controls, an attacker could assign any issue to any project in Gitea (there was no permission check for fetching the issue). As a result, the attacker would get access to private issue titles.

    Recommended action: Upgrade to 1.16.9 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  16. Medium, CVSS 4.4GoPublished

    Stored Cross-site Scripting in gitea

    CVE-2022-1928 · GHSA-ph3w-2843-72mx

    Affected
    • Go code.gitea.io/gitea < 1.16.9
    Fixed in
    1.16.9· Vendor fix available
    Issue
    Cross-site Scripting (XSS) - Stored in GitHub repository go-gitea/gitea prior to 1.16.9 via unfiltered pdfs

    Recommended action: Upgrade to 1.16.9 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  17. Medium, CVSS 6.1GoPublished

    Gitea XSS Vulnerability

    CVE-2019-1010261 · GHSA-5rh7-6gfj-mc87

    Affected
    • Go code.gitea.io/gitea <= 1.7.0
    Fixed in
    1.7.1· Vendor fix available
    Issue
    Gitea 1.7.0 and earlier is affected by: Cross Site Scripting (XSS). The impact is: Attacker is able to have victim execute arbitrary JS in browser. The component is: go-get URL generation - PR to fix: https://github.com/go-gitea/gitea/pull/5905. The attack vector is: victim must open a specifically crafted URL. The fixed version is: 1.7.1 and later.

    Recommended action: Upgrade to 1.7.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  18. Medium, CVSS 6.1GoPublished

    Gitea XSS Vulnerability in Repository Description

    CVE-2019-1010314 · GHSA-hqx2-j33x-9fc4

    Affected
    • Go code.gitea.io/gitea >= 1.7.2, < 1.7.4
    Fixed in
    1.7.4· Vendor fix available
    Issue
    Gitea 1.7.2, 1.7.3 is affected by: Cross Site Scripting (XSS). The impact is: execute JavaScript in victim's browser, when the vulnerable repo page is loaded. The component is: repository's description. The attack vector is: victim must navigate to public and affected repo page.

    Recommended action: Upgrade to 1.7.4 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  19. Critical, CVSS 9.8GoPublished

    Gitea Allows 1FA Even for 2FA-Enrolled Accounts

    CVE-2019-11576 · GHSA-3393-r4p5-vhqh

    Affected
    • Go code.gitea.io/gitea < 1.8.0
    Fixed in
    1.8.0· Vendor fix available
    Issue
    Gitea before 1.8.0 allows 1FA for user accounts that have completed 2FA enrollment. If a user's credentials are known, then an attacker could send them to the API without requiring the 2FA one-time password.

    Recommended action: Upgrade to 1.8.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  20. High, CVSS 7.5GoPublished

    Shell command injection in gitea

    CVE-2022-30781 · GHSA-p5f9-c9j9-g8qx

    Affected
    • Go code.gitea.io/gitea < 1.16.7
    Fixed in
    1.16.7· Vendor fix available
    Issue
    Gitea before 1.16.7 does not escape the shell out for git fetch remote allowing for shell command injection

    Recommended action: Upgrade to 1.16.7 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  21. High, CVSS 8.6GoPublished

    Gogs and Gitea SSRF Vulnerability

    CVE-2018-15192 · GHSA-fg3x-rwq9-74cw

    Affected
    • Go code.gitea.io/gitea < 1.16.0-rc1
    Fixed in
    1.16.0-rc1· Vendor fix available
    Issue
    An SSRF vulnerability in webhooks in Gitea through 1.5.0-rc2 and Gogs through 0.11.53 allows remote attackers to access intranet services.

    Recommended action: Upgrade to 1.16.0-rc1 (pre-release) or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  22. Medium, CVSS 6.5GoPublished

    Gitea Arbitrary File Delete Vulnerability

    CVE-2019-1000002 · GHSA-j99q-rwp6-498g

    Affected
    • Go code.gitea.io/gitea <= 1.6.2
    Fixed in
    1.6.3· Vendor fix available
    Issue
    Gitea version 1.6.2 and earlier contains a Incorrect Access Control vulnerability in Delete/Edit file functionallity that can result in the attacker deleting files outside the repository he/she has access to. This attack appears to be exploitable via the attacker must get write access to "any" repository including self-created ones. This vulnerability appears to have been fixed in 1.6.3, 1.7.0-rc2.

    Recommended action: Upgrade to 1.6.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  23. High, CVSS 7.5GoPublished

    Arbitrary file deletion in gitea

    CVE-2022-27313 · GHSA-g7p7-x6w7-w6qg

    Affected
    • Go code.gitea.io/gitea < 1.16.4
    Fixed in
    1.16.4· Vendor fix available
    Issue
    An arbitrary file deletion vulnerability in Gitea v1.16.3 allows attackers to cause a Denial of Service (DoS) via deleting the configuration file.

    Recommended action: Upgrade to 1.16.4 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  24. Medium, CVSS 6.1GoPublished

    Gitea Open Redirect

    CVE-2022-1058 · GHSA-4rqq-rxvc-v2rc

    Affected
    • Go code.gitea.io/gitea < 1.16.5
    Fixed in
    1.16.5· Vendor fix available
    Issue
    Open Redirect on login in GitHub repository go-gitea/gitea prior to 1.16.5.

    Recommended action: Upgrade to 1.16.5 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  25. Medium, CVSS 5.3GoPublished

    Path Traversal in Gitea

    CVE-2021-29134 · GHSA-h3q4-vmw4-cpr5

    Affected
    • Go code.gitea.io/gitea < 1.13.6
    Fixed in
    1.13.6· Vendor fix available
    Issue
    The avatar middleware in Gitea before 1.13.6 allows Directory Traversal via a crafted URL.

    Recommended action: Upgrade to 1.13.6 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →