Gogs through 0.14.4 Protected Branch Allowlist Bypass via Pull Request Merge
- State
- Published
- Severity
- 7.1 High
- Published
- Nov 19, 2026
- Updated
- Nov 19, 2026
- Reserved
- Nov 19, 2026
Description
Gogs through 0.14.4 contains an authorization bypass vulnerability that allows collaborators with write access to push to protected branches by merging pull requests. Because MergePullRequest skips branch protection checks and PullRequest.Merge omits hook environment variables, attackers can merge commits into branches restricted to allowlisted users.
| Product | Versions |
|---|---|
| gogs gogs | 0.14.4 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 7.1 High | VulnCheck | |
| 3.1 | 6.5 Medium | VulnCheck |
Weaknesses
- CWE-863 Incorrect Authorization
References
- GitHub Security Advisory (GHSA-8r2x-49gj-h6rm)Vendor Advisory
- https://github.com/gogs/gogs/commit/089f089fa783f95b54a635b8ec9b3f498c2a5d12Patch
- https://github.com/gogs/gogs/commit/1651767a3e2c531ccf0af2141d691cfff8763e09Patch
- https://github.com/gogs/gogs/blob/v0.14.4/internal/route/repo/pull.go#L401-L431Technical Details
- https://github.com/gogs/gogsProduct Page
- VulnCheck Advisory: Gogs through 0.14.4 Protected Branch Allowlist Bypass via Pull Request MergeThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.