# CVE-2026-25229: Gogs Authorization Bypass Allows Cross-Repository Label Modification

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-17T18:42:08.000Z
- Modified: 2026-06-17T10:24:20.480Z
- Also known as: GHSA-cv22-72px-f4gh, GO-2026-4499
- Weaknesses: CWE-284
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Gogs is an open source self-hosted Git service. Versions 0.13.4 and below have a broken access control vulnerability which allows authenticated users with write access to any repository to modify labels belonging to other repositories. The UpdateLabel function in the Web UI (internal/route/repo/issue.go) fails to verify that the label being modified belongs to the repository specified in the URL path, enabling cross-repository label tampering attacks. The vulnerability exists in the Web UI's label update endpoint POST /:username/:reponame/labels/edit. The handler function UpdateLabel uses an incorrect database query function that bypasses repository ownership validation. This issue has been fixed in version 0.14.1.

(As written by CVE List.)

## Affected

- gogs gogs: < 0.14.1; before 0.14.1
- gogs.io/gogs (Go): before 0.14.0; all versions

## Every score

- GitHub_M: CVSS:4.0 5.3 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/gogs/gogs/security/advisories/GHSA-cv22-72px-f4gh> (exploit, advisory, mitigation, vendor-advisory, web)
- <https://github.com/gogs/gogs/commit/643a6d6353cb6a182a4e1f0720228727f30a3ad2> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25229> (advisory)
- <https://github.com/gogs/gogs> (package)

## Sources

- CVE List: [CVE-2026-25229](https://www.cve.org/CVERecord?id=CVE-2026-25229), CVE Terms of Use, modified 2026-02-19
- GitHub Advisory Database: [GHSA-cv22-72px-f4gh](https://github.com/advisories/GHSA-cv22-72px-f4gh), CC-BY-4.0, modified 2026-02-23
- Go Vulnerability Database: [GO-2026-4499](https://pkg.go.dev/vuln/GO-2026-4499), CC-BY-4.0, modified 2026-02-23
- NVD: [CVE-2026-25229](https://nvd.nist.gov/vuln/detail/CVE-2026-25229), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-25229 · Whole record: https://cve.day/CVE-2026-25229.json · Rebuilt by cve.day 2026-11-25T22:59:14.070Z
