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

Read the record on cve.org

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.

ProductVersions
gogs gogs0.14.4 and earlier Affected

Weaknesses

References

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.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.