Incorrect Authorization Affecting code.gitea.io/gitea/routers/api/packages package, versions <1.27.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.36% (30th 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-CODEGITEAIOGITEAROUTERSAPIPACKAGES-18752136
  • published13 Aug 2026
  • disclosed21 Jul 2026
  • creditJebeenLee, Alec Chappell

Introduced: 21 Jul 2026

NewCVE-2026-56443  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade code.gitea.io/gitea/routers/api/packages to version 1.27.0 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Authorization in the checkTokenPublicOnly function when handling Repository and Package categories with owners set to limited visibility. An attacker can gain unauthorized access to internal repository or package content by using a personal access token with a public-only scope, which should not permit access to limited-visibility resources.

CVSS Base Scores

version 4.0
version 3.1