CVE-2021-45326Gitea
High 8.8 No auth needed
Follow: this CVE · Gitea · Gitea We alert you by email or Slack (account required).
- Priority
- 68
- CVSS 3.1
- 8.8
- EPSS
- 0.6% probability of exploitation in 30 days · percentile 43
- Auth required
- No
- Published
- Feb 8, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-352
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
Cross Site Request Forgery (CSRF) vulnerability exists in Gitea before 1.5.2 via API routes.This can be dangerous especially with state altering POST requests.
What to do
- Apply the vendor's security update for Gitea.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/go-gitea/gitea |
< 1.5.2 |
1.5.2 |
go get github.com/go-gitea/gitea@v1.5.2 |
| Go | github.com/go-gitea/gitea |
< 1.5.2 |
1.5.2 |
go get github.com/go-gitea/gitea@v1.5.2 |
Per OSV / GitHub Advisories (GHSA-4wp3-8q92-mh8w, GO-2022-0309). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gitea | gitea | < 1.5.2 |
Official sources
References
Links published by the sources. Open them with care.
- blog.gitea.io Release Notes Vendor Advisory
- github.com Issue Tracking Third Party Advisory
- github.com Patch Third Party Advisory