code.gitea.io/gitea
Go52 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 1 of 2
- CVE-2018-15192HIGHCVSS 8.6EG 8.6✓ Fixed in 1.16.0-rc12018-08-08
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.
- CVE-2018-18926CRITICALCVSS 9.8EG 9.8✓ Fixed in 1.5.22018-11-04
Gitea before 1.5.4 allows remote code execution because it does not properly validate session IDs. This is related to session ID handling in the go-macaron/session code for Macaron.
- CVE-2019-1000002MEDIUMCVSS 6.5EG 6.5✓ Fixed in 1.6.32019-02-04
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 expl…
- CVE-2019-1010261MEDIUMCVSS 6.1EG 6.1✓ Fixed in 1.7.12019-07-18
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…
- CVE-2019-1010314MEDIUMCVSS 6.1EG 6.1✓ Fixed in 1.7.42019-07-11
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 na…
- CVE-2019-11576CRITICALCVSS 9.8EG 9.8✓ Fixed in 1.8.02019-04-28
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.
- CVE-2020-13246HIGHCVSS 7.5EG 7.5✓ Fixed in 1.12.02020-05-20
An issue was discovered in Gitea through 1.11.5. An attacker can trigger a deadlock by initiating a transfer of a repository's ownership from one organization to another.
- CVE-2020-14144HIGHCVSS 7.2EG 7.2✓ Fixed in 1.12.62020-10-16
The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authenticated remote code execution in customer environments where the documentation was not understood (e.g., one viewpoint is that the dangerousness of this feature shoul…
- CVE-2021-28378LOWCVSS 3.7EG 3.7✓ Fixed in 1.13.42021-03-15
Gitea 1.12.x and 1.13.x before 1.13.4 allows XSS via certain issue data in some situations.
- CVE-2021-29134MEDIUMCVSS 5.3EG 5.3✓ Fixed in 1.13.62022-03-15
The avatar middleware in Gitea before 1.13.6 allows Directory Traversal via a crafted URL.
- CVE-2021-3382HIGHCVSS 7.5EG 7.5✓ Fixed in 1.13.22021-02-05
Stack buffer overflow vulnerability in gitea 1.9.0 through 1.13.1 allows remote attackers to cause a denial of service (crash) via vectors related to a file path.
- CVE-2021-45327CRITICALCVSS 9.8EG 9.8✓ Fixed in 1.11.22022-02-08
Gitea before 1.11.2 is affected by Trusting HTTP Permission Methods on the Server Side when referencing the vulnerable admin or user API. which could let a remote malisious user execute arbitrary code.
- CVE-2021-45330CRITICALCVSS 9.8EG 9.8✓ Fixed in 1.6.02022-02-09
An issue exsits in Gitea through 1.15.7, which could let a malicious user gain privileges due to client side cookies not being deleted and the session remains valid on the server side for reuse.
- CVE-2021-45331CRITICALCVSS 9.8EG 9.8✓ Fixed in 1.5.02022-02-09
An Authentication Bypass vulnerability exists in Gitea before 1.5.0, which could let a malicious user gain privileges. If captured, the TOTP code for the 2FA can be submitted correctly more than once.
- CVE-2022-0905HIGHCVSS 7.1EG 7.1✓ Fixed in 1.16.42022-03-10
Missing Authorization in GitHub repository go-gitea/gitea prior to 1.16.4.
- CVE-2022-1058MEDIUMCVSS 6.1EG 6.1✓ Fixed in 1.16.52022-03-24
Open Redirect on login in GitHub repository go-gitea/gitea prior to 1.16.5.
- CVE-2022-1928MEDIUMCVSS 5.4EG 5.4✓ Fixed in 1.16.92022-05-29
Cross-site Scripting (XSS) - Stored in GitHub repository go-gitea/gitea prior to 1.16.9.
- CVE-2022-27313HIGHCVSS 7.5EG 7.5✓ Fixed in 1.16.42022-05-03
An arbitrary file deletion vulnerability in Gitea v1.16.3 allows attackers to cause a Denial of Service (DoS) via deleting the configuration file.
- CVE-2022-30781HIGHCVSS 7.5EG 7.5✓ Fixed in 1.16.72022-05-16
Gitea before 1.16.7 does not escape git fetch remote.
- CVE-2022-38183MEDIUMCVSS 6.5EG 6.5✓ Fixed in 1.16.92022-08-12
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 …
- CVE-2022-38795MEDIUMCVSS 6.5EG 6.5✓ Fixed in 1.17.22023-08-07
In Gitea through 1.17.1, repo cloning can occur in the migration function.
- CVE-2022-42968CRITICALCVSS 9.8EG 9.8✓ Fixed in 1.17.32022-10-16
Gitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.
- CVE-2023-3515MEDIUMCVSS 4.4EG 4.4✓ Fixed in 1.19.42023-07-05
Open Redirect in GitHub repository go-gitea/gitea prior to 1.19.4.
- CVE-2024-6886CRITICALCVSS 10.0EG 10.0✓ Fixed in 1.22.12024-08-06
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.
- CVE-2025-68938MEDIUMCVSS 4.3EG 4.3✓ Fixed in 1.25.22025-12-26
Gitea before 1.25.2 mishandles authorization for deletion of releases.
- CVE-2025-68939HIGHCVSS 8.2EG 8.22025-12-26
Gitea before 1.23.0 allows attackers to add attachments with forbidden file extensions by editing an attachment name via an attachment API.
- CVE-2025-68940LOWCVSS 3.1EG 3.1✓ Fixed in 1.22.52025-12-26
In Gitea before 1.22.5, branch deletion permissions are not adequately enforced after merging a pull request.
- CVE-2025-68941MEDIUMCVSS 4.9EG 4.9✓ Fixed in 1.22.32025-12-26
Gitea before 1.22.3 mishandles access to a private resource upon receiving an API token with scope limited to public resources.
- CVE-2025-68942MEDIUMCVSS 5.4EG 5.4✓ Fixed in 1.22.22025-12-26
Gitea before 1.22.2 allows XSS because the search input box (for creating tags and branches) is v-html instead of v-text.
- CVE-2025-68943MEDIUMCVSS 5.3EG 5.3✓ Fixed in 1.21.82025-12-26
Gitea before 1.21.8 inadvertently discloses users' login times by allowing (for example) the lastlogintime explore/users sort order.
- CVE-2025-68944MEDIUMCVSS 5.0EG 5.0✓ Fixed in 1.22.22025-12-26
Gitea before 1.22.2 sometimes mishandles the propagation of token scope for access control within one of its own package registries.
- CVE-2025-68945MEDIUMCVSS 5.8EG 5.8✓ Fixed in 1.21.22025-12-26
In Gitea before 1.21.2, an anonymous user can visit a private user's project.
- CVE-2025-68946MEDIUMCVSS 5.4EG 5.4✓ Fixed in 1.20.12025-12-26
In Gitea before 1.20.1, a forbidden URL scheme such as javascript: can be used for a link, aka XSS.
- CVE-2025-69413MEDIUMCVSS 5.3EG 5.3✓ Fixed in 1.25.22026-01-01
In Gitea before 1.25.2, /api/v1/user has different responses for failed authentication depending on whether a username exists.
- CVE-2026-0798LOWCVSS 3.5EG 3.5✓ Fixed in 1.25.42026-01-22
Gitea may send release notification emails for private repositories to users whose access has been revoked. When a repository is changed from public to private, users who previously watched the repository may continue to receive release no…
- CVE-2026-20706CRITICALCVSS 9.1EG 9.1✓ Fixed in 1.26.22026-06-16
Gitea versions up to and including 1.26.1 allow repository archive downloads to bypass token scope checks on the web archive download endpoint.
- CVE-2026-20736HIGHCVSS 7.5EG 7.5✓ Fixed in 1.25.42026-01-22
Gitea does not properly verify repository context when deleting attachments. A user who previously uploaded an attachment to a repository may be able to delete it after losing access to that repository by making the request through a diffe…
- CVE-2026-20750CRITICALCVSS 9.1EG 9.1✓ Fixed in 1.25.42026-01-22
Gitea does not properly validate project ownership in organization project operations. A user with project write access in one organization may be able to modify projects belonging to a different organization.
- CVE-2026-20800MEDIUMCVSS 6.5EG 6.5✓ Fixed in 1.25.42026-01-22
Gitea's notification API does not re-validate repository access permissions when returning notification details. After a user's access to a private repository is revoked, they may still view issue and pull request titles through previously…
- CVE-2026-20883MEDIUMCVSS 6.5EG 6.5✓ Fixed in 1.25.42026-01-22
Gitea's stopwatch API does not re-validate repository access permissions. After a user's access to a private repository is revoked, they may still view issue titles and repository names through previously started stopwatches.
- CVE-2026-20888MEDIUMCVSS 4.3EG 4.3✓ Fixed in 1.25.42026-01-22
Gitea does not properly verify authorization when canceling scheduled auto-merges via the web interface. A user with read access to pull requests may be able to cancel auto-merges scheduled by other users.
- CVE-2026-20897CRITICALCVSS 9.1EG 9.1✓ Fixed in 1.25.42026-01-22
Gitea does not properly validate repository ownership when deleting Git LFS locks. A user with write access to one repository may be able to delete LFS locks belonging to other repositories.
- CVE-2026-20904MEDIUMCVSS 6.5EG 6.5✓ Fixed in 1.25.42026-01-22
Gitea does not properly validate ownership when toggling OpenID URI visibility. An authenticated user may be able to change the visibility settings of other users' OpenID identities.
- CVE-2026-20912CRITICALCVSS 9.1EG 9.1✓ Fixed in 1.25.42026-01-22
Gitea does not properly validate repository ownership when linking attachments to releases. An attachment uploaded to a private repository could potentially be linked to a release in a different public repository, making it accessible to u…
- CVE-2026-22555HIGHCVSS 8.1EG 8.1✓ Fixed in 1.26.02026-06-17
Gitea versions before 1.26.0 allow API users to fork a repository into an organization without first passing the CanCreateOrgRepo check, which can expose organization secrets.
- 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-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-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-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.
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 →