CVE-2021-45328: Open redirect in Gitea
Summary
CVE-2021-45328: Open redirect in Gitea. Affects github.com/go-gitea/gitea versions < 1.4.3. Fixed in 1.4.3. How to fix ↓
Also tracked for
- gitea · Bitnami
The same CVE-2021-45328 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Gitea is an open-source self-hosted Git service written in Go. It provides a lightweight interface for managing repositories, users, and organizations. Gitea is widely used for version control and collaboration in software development projects. However, versions before 1.4.3 are vulnerable to an Open Redirect attack.
Vulnerability Detail
The vulnerability in Gitea allows for URL Redirection to an Untrusted Site. This means that an attacker can craft a malicious URL that, when clicked by a user, redirects them to a different website. This can be exploited to trick users into visiting phishing sites or other malicious destinations. The vulnerability is rated as moderate severity with a CVSS score of 6.1.
How To Fix
Latest published version: v1.8.3 as of 23 Oct 2026
go get github.com/go-gitea/gitea@v1.8.3
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
1.4.3
This is the first release that contains the fix.
go get github.com/go-gitea/gitea@v1.4.3
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is essential to apply the official patch by upgrading to Gitea version 1.4.3 or later.
Conclusion
In conclusion, the Open Redirect vulnerability in Gitea before version 1.4.3 poses a moderate risk to users. It allows attackers to redirect users to malicious websites, potentially leading to phishing attacks or other malicious activities. To mitigate this risk, it is recommended to upgrade to Gitea version 1.4.3 or later. For further support on vulnerability remediation, you can reach out to DevNack.com.
See every vulnerability recorded for github.com/go-gitea/gitea →
FAQ
An Open Redirect vulnerability allows an attacker to redirect users to an untrusted website by manipulating a URL. This can be used for phishing attacks or to trick users into visiting malicious sites.
You can use the Vulert Playground at Vulert Scanner to check if your Gitea installation is affected by this vulnerability. Simply enter your Gopkg.lock file, and Vulert will analyze it for any open-source vulnerabilities, including CVE-2021-45328.
The CVSS score for this vulnerability is 6.1, indicating a moderate severity level.
No, only versions before 1.4.3 are vulnerable to this Open Redirect issue. It is recommended to upgrade to the latest version to ensure the security of your Gitea installation.
At the time of this advisory, there are no known public exploits for this vulnerability. However, it is crucial to apply the patch and update Gitea to the latest version to prevent any potential exploitation.
Related vulnerabilities
Recent vulnerabilities recorded for github.com/go-gitea/gitea.