Incorrect Authorization Affecting code.gitea.io/gitea/services/context package, versions <1.26.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.45% (38th 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-CODEGITEAIOGITEASERVICESCONTEXT-17425937
  • published23 Jun 2026
  • disclosed16 Jun 2026
  • creditTaekyung Oh

Introduced: 16 Jun 2026

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

How to fix?

Upgrade code.gitea.io/gitea/services/context to version 1.26.2 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Authorization due to improper enforcement of token scope validation in the CheckRepoScopedToken() function. An attacker can gain unauthorized access to private repository contents by presenting a valid personal access token or OAuth2 token as a Bearer credential instead of using HTTP Basic authentication.

CVSS Base Scores

version 4.0
version 3.1