{"cve":"CVE-2026-25229","nvd":{"published":"2026-02-19T07:17:45.363","modified":"2026-06-17T10:24:20.480","status":"Analyzed","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.","cvss_v4":{"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","score":5.3},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5},"cwes":["CWE-284"],"references":["https://github.com/gogs/gogs/commit/643a6d6353cb6a182a4e1f0720228727f30a3ad2","https://github.com/gogs/gogs/security/advisories/GHSA-cv22-72px-f4gh"],"products":["gogs:gogs"],"source":"nvd","synced_at":"2026-10-19T22:23:35.260773158+00:00"},"epss":{"cve":"CVE-2026-25229","score":0.00296,"percentile":0.22258,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-cv22-72px-f4gh","url":"https://osv.dev/vulnerability/GHSA-cv22-72px-f4gh","summary":"Gogs has an Authorization Bypass Allows Cross-Repository Label Modification in Gogs","modified":"2026-02-23T19:26:04.055032Z","packages":[{"ecosystem":"Go","name":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","ranges":["<0.14.0"],"fixed":["0.14.0"]}]},{"id":"GO-2026-4499","url":"https://osv.dev/vulnerability/GO-2026-4499","summary":"Gogs has an Authorization Bypass Allows Cross-Repository Label Modification in Gogs in gogs.io/gogs","modified":"2026-02-23T19:26:04.055032Z","packages":[{"ecosystem":"Go","name":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","ranges":["all versions"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}