Incorrect Authorization Affecting gogs.io/gogs/internal/route/repo package, versions <0.14.0-rc.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.44% (35th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Incorrect Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GOGSIOGOGSINTERNALROUTEREPO-15308661
  • published19 Feb 2026
  • disclosed17 Feb 2026
  • creditUnknown

Introduced: 17 Feb 2026

CVE-2026-25232  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade gogs.io/gogs/internal/route/repo to version 0.14.0-rc.1 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Authorization in the DeleteBranchPost() function. A repository collaborator with Write permission can delete protected branches or the default branch by sending POST requests directly to the web interface, bypassing branch protection mechanisms.

CVSS Base Scores

version 4.0
version 3.1